optional.optional

Optional type

Members

Functions

no
auto no()

Type constructor for an optional having no value of T

some
auto some(T value)

Type constructor for an optional having some value of T

toNullable
auto toNullable(Optional!T opt)

Turns an Optional in to a Nullable

toOptional
auto toOptional(R range)
auto toOptional(Nullable!T nullable)

Converts a range or Nullable to an optional type

Structs

None
struct None
Undocumented in source.
Optional
struct Optional(T)

Optional type. Also known as a Maybe or Option type in some languages.

Variables

none
auto none;

Represents an empty optional value. This is used to set Optionals to have no value or for comparisons

Meta