Skip to main content

Result

Type Alias Result 

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

The crate-wide result type.

The error type is a defaulted parameter so the common Result<T> stays short while a call site that needs a precise error can still name it.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value