GameResult

Type Alias GameResult 

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

A generic result type used throughout the game.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value