nxt.notnull

Members

Functions

assumeNotNull
NotNull!T assumeNotNull(T t)

A convenience function to construct a NotNull value from something t you know isn't null.

enforceNotNull
NotNull!T enforceNotNull(T t)

A convenience function to check for null t. If you pass null to t, it will throw an exception. Otherwise, return NotNull!T.

Structs

CheckNull
struct CheckNull(T)

by Andrej Mitrovic

NotNull
struct NotNull(T)

NotNull ensures a null value can never be stored.

Templates

isNullAssignable
template isNullAssignable(T)

Note that NotNull!T is not isNullAssignable.

Meta