Type Alias yggdrasil_rt::Either

source ·
pub type Either<S> = Result<S, S>;
Expand description

Type alias to simplify specifying the return value of chained closures.

Aliased Type§

enum Either<S> {
    Ok(S),
    Err(S),
}

Variants§

§1.0.0

Ok(S)

Contains the success value

§1.0.0

Err(S)

Contains the error value