pub enum GameState {
Ongoing,
Checkmates(Color),
Stalemate,
DrawAccepted,
DrawDeclared,
Resigns(Color),
}Expand description
The Result of the game.
Variants
Ongoing
The game is still ongoing.
Checkmates(Color)
A player is checkmates.
Stalemate
Draw by Stalemate.
DrawAccepted
Draw by request accepted (ie. Mutual Agreement).
DrawDeclared
Draw declared by a player.
Resigns(Color)
The Color has resigns.
Implementations
Trait Implementations
sourceimpl PartialEq<GameState> for GameState
impl PartialEq<GameState> for GameState
impl Copy for GameState
impl Eq for GameState
impl StructuralEq for GameState
impl StructuralPartialEq for GameState
Auto Trait Implementations
impl RefUnwindSafe for GameState
impl Send for GameState
impl Sync for GameState
impl Unpin for GameState
impl UnwindSafe for GameState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more