IntoResult

Trait IntoResult 

Source
pub trait IntoResult {
    type Value;
    type Error;

    // Required method
    fn into_result(self) -> Result<Self::Value, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn into_result(self) -> Result<Self::Value, Self::Error>

Implementations on Foreign Types§

Source§

impl<T> IntoResult for Option<T>

Source§

type Value = T

Source§

type Error = ()

Source§

fn into_result(self) -> Result<Self::Value, Self::Error>

Source§

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

Source§

type Value = T

Source§

type Error = E

Source§

fn into_result(self) -> Result<Self::Value, Self::Error>

Implementors§