Skip to main content

Result

Type Alias Result 

Source
pub type Result<T, E = Error> = Result<T, E>;
Expand description

A result that is either Ok(T) or Err(mutatis::Error).

Aliased Type§

pub enum Result<T, E = Error> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

Source§

impl<T> ResultExt for Result<T>

Source§

fn ignore_exhausted(self) -> Result<()>

Ignores the error if it is Exhausted, returning Ok(()) instead. Read more