IntoOption

Trait IntoOption 

Source
pub trait IntoOption<T> {
    // Required method
    fn into_option(self) -> Option<T>;
}
Expand description

Convenient trait to convert to Option<T>. IntoOption<T> for F is automatically implemented if TryInto<T> for F is implemented.

Required Methods§

Source

fn into_option(self) -> Option<T>

Implementors§

Source§

impl<T, F> IntoOption<T> for F
where T: TryFrom<F>,