Option
The option type. Use this when you might have a value, but might not.
Source Codeenum Option<T> { Some(T), None, }
enum Option<T> { Some(T), None, }
is_none
is_some
or_throw
or_value