Skip to main content

Result

Type Alias Result 

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

Umbrella Result alias keyed on the top-level Error enum.

Use this at the edges of consumer code that just wants a single ?-friendly error type covering every domain. Internal APIs continue to return their domain-specific aliases (ParseResult, ApplyResult, IndexResult, VerifyResult).

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value