The option type Option<T> of the standard library is the enum with the variants Some(T) and None. It is the type of a value that may be absent, and replaces the null pointer and the reserved no value code.
Computer Science · Glosarium
Computer Science · Glosarium
The option type Option<T> of the standard library is the enum with the variants Some(T) and None. It is the type of a value that may be absent, and replaces the null pointer and the reserved no value code.