Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, MatchError>;

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(MatchError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(MatchError)

Contains the error value

Trait Implementations§

Source§

impl<T> MatchResultExt<T> for Result<T>

Source§

fn first<S>(self) -> Result<S>
where T: IntoIterator<Item = S>,

Return the first element
Source§

fn abort(self) -> Result<T>