pub trait IntoResult: Sized {
    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

Consumes self and returns it wrapped in Ok.

Consumes self and returns it wrapped in Err.

Implementors