optional.notnull

Provides a wrapper type to ensure objects are never null

Members

Functions

notNull
auto notNull(Args args)

Creates a NotNull type

Structs

NotNull
struct NotNull(T)

A NotNull type ensure that the type you give it can never have a null value. So it is always safe to use. It's specifically designed for pointers to values or classes. You can give it a struct as well.

Meta