Trait core_extensions::option_result_ext::ToOption[][src]

pub trait ToOption {
    type Output;
    fn to_option(self) -> Option<Self::Output>;
}

Converts a type containing options into an option containing the type

Associated Types

The type in which the Options are unwrapped.

Example: Self==(Option,Option) type Output=(i32,i32);

Required Methods

Performs the conversion

Implementations on Foreign Types

impl<T> ToOption for Option<T>
[src]

impl<T> ToOption for (Option<T>, Option<T>)
[src]

impl<T> ToOption for (Option<T>, Option<T>, Option<T>)
[src]

impl<T> ToOption for (Option<T>, Option<T>, Option<T>, Option<T>)
[src]

impl<T> ToOption for (Option<T>, Option<T>, Option<T>, Option<T>, Option<T>)
[src]

Implementors