option library

Extension Types

Option
Option represents the union of two types - Some<T> and None. As an extension type of T?, Option<T> has the same runtime cost of T? with the advantage of being able to chain null specific operations.
Some
Represents a value that is present. The erasure of this is T.

Constants

None → const _None
Represents a value that is absent. The erasure of this is null.

Typedefs

FutureOption<T> = Future<Option<T>>
FutureOption represents an asynchronous Option. And as such, inherits all of Option's methods.