Converts this optional to a Phobos-style Nullable.
Provides a mechanism to allow usage in boolean expressions.
Gets the value of this optional if it exists, otherwise uses a given default value.
Gets the value of this optional if it exists, or throws an exception.
Gets the value of this optional if it exists, or throws an exception as produced by the given delegate.
Constructs an optional that's empty.
Constructs an optional value using a given value.
Constructs an optional value using a Phobos nullable.
A simple wrapper around a value to make it optionally present.