ToResult

Trait ToResult 

Source
pub trait ToResult {
    // Provided methods
    fn ok<Err>(self) -> Result<Self, Err>
       where Self: Sized { ... }
    fn err<Any>(self) -> Result<Any, Self>
       where Self: Sized { ... }
    fn some(self) -> Option<Self>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn ok<Err>(self) -> Result<Self, Err>
where Self: Sized,

Source

fn err<Any>(self) -> Result<Any, Self>
where Self: Sized,

Source

fn some(self) -> Option<Self>
where Self: Sized,

Implementors§

Source§

impl<T> ToResult for T