pub enum Option<T> {
/// No value.
None: (),
/// Some value of type `T`.
Some: T,
}
Expand description
A type that represents an optional value, either Some(val)
or None
.
Variants
None: ()
No value.
Some: T
Some value of type T
.