pub type GameResult = Result<(), GameError>;
An alias for Result that has () as Ok value, and GameError as error value.
Result
()
Ok
GameError
pub enum GameResult { Ok(()), Err(GameError), }
Contains the success value
Contains the error value