TryIntoOrNone

Trait TryIntoOrNone 

Source
pub trait TryIntoOrNone<F, T> {
    // Required method
    fn try_into_or_none(self) -> Option<T>;
}

Required Methods§

Source

fn try_into_or_none(self) -> Option<T>

Turn an option of something into an option of another thing, trying to convert along the way and returning None if that conversion fails

Implementations on Foreign Types§

Source§

impl<F, T> TryIntoOrNone<F, T> for Option<F>
where F: TryInto<T>,

Implementors§