Type Alias turmoil::Result

source ·
pub type Result<T = ()> = Result<T, Box<dyn Error>>;
Expand description

A specialized Result type for turmoil simulations.

This type is generally useful for fallible test cases, i.e. where you want to use the ? operator to fail the test rather than writing unwrap everywhere.

Aliased Type§

enum Result<T = ()> {
    Ok(T),
    Err(Box<dyn Error>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<dyn Error>)

Contains the error value