pub enum GameStatus {
Drawn,
Ongoing {
next: Player,
},
Won(Player),
}Expand description
The current status of a game.
Variants§
Drawn
The game is over and is a draw.
Ongoing
The game is not over.
Won(Player)
The game is over and has been won by the indicated Player.
Trait Implementations§
Source§impl Clone for GameStatus
impl Clone for GameStatus
Source§fn clone(&self) -> GameStatus
fn clone(&self) -> GameStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GameStatus
Source§impl Debug for GameStatus
impl Debug for GameStatus
Source§impl Display for GameStatus
impl Display for GameStatus
impl Eq for GameStatus
Source§impl Hash for GameStatus
impl Hash for GameStatus
Source§impl PartialEq for GameStatus
impl PartialEq for GameStatus
Source§fn eq(&self, other: &GameStatus) -> bool
fn eq(&self, other: &GameStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GameStatus
Auto Trait Implementations§
impl Freeze for GameStatus
impl RefUnwindSafe for GameStatus
impl Send for GameStatus
impl Sync for GameStatus
impl Unpin for GameStatus
impl UnsafeUnpin for GameStatus
impl UnwindSafe for GameStatus
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