Trait tailsome::IntoResult

source ·
pub trait IntoResult: Sized {
    // Required methods
    fn into_ok<E>(self) -> Result<Self, E>;
    fn into_err<O>(self) -> Result<O, Self>;
}
Expand description

Provides into_ok and into_err. Implemented for all Sized types.

Required Methods§

source

fn into_ok<E>(self) -> Result<Self, E>

Consumes self and returns it wrapped in Ok.

source

fn into_err<O>(self) -> Result<O, Self>

Consumes self and returns it wrapped in Err.

Implementors§

source§

impl<T: Sized> IntoResult for T