Skip to main content

Result

Type Alias Result 

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

Type alias for Results using our custom error type This is a common Rust pattern - makes code cleaner

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(CurrencyError)

Contains the error value