pub trait IntoOption<T> {
    // Required method
    fn into_option(self) -> Option<T>;
}Expand description
Converts Self to an Option<T>, either Some(T) if able or None
Required Methods§
Sourcefn into_option(self) -> Option<T>
 
fn into_option(self) -> Option<T>
Return self as an Option<T>