Trait std::option::IntoOption

pub trait IntoOption<T> {
    fn into_option(self) -> Option<T>;
}

A generic trait for converting a value to a Option

Required Methods

fn into_option(self) -> Option<T>

Convert to the option type

Implementors