GameResult

Type Alias GameResult 

Source
pub type GameResult<T = ()> = Result<T, GameError>;
Expand description

A convenient result type consisting of a return type and a GameError

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(GameError)

Contains the error value