pub enum State {
Ongoing,
Victory,
Defeat,
VictoryGameOver,
DefeatGameOver,
}Expand description
A subset of the game state. Can be derived from Game struct.
Variants§
Ongoing
The game is ongoing.
Victory
The player won and the game is continuable.
Defeat
The player lost and the game is continuable.
VictoryGameOver
The player won and there are no more words to guess.
DefeatGameOver
The player lost and there are no more secrets to guess.
Trait Implementations§
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more