Skip to main content

GameResult

Type Alias GameResult 

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

An alias for Result that has () as Ok value, and GameError as error value.

Aliased Type§

pub enum GameResult {
    Ok(()),
    Err(GameError),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(GameError)

Contains the error value