Skip to main content

IntoOption

Trait IntoOption 

Source
pub trait IntoOption: Sealed {
    type OptionT;

    // Required method
    fn into_option(self) -> Option<Self::OptionT>;
}
Expand description

Used to convert Result into Option, or keep Option as it is.

Required Associated Types§

Required Methods§

Source

fn into_option(self) -> Option<Self::OptionT>

Implementations on Foreign Types§

Source§

impl<T> IntoOption for Option<T>

Source§

impl<T, E> IntoOption for Result<T, E>

Implementors§