pub enum GameStatus {
BlackWin,
WhiteWin,
Ongoing,
}
Expand description
A simple descriptor of the game status: ongoing, black victory, or white victory.
Variants§
Trait Implementations§
Source§impl Clone for GameStatus
impl Clone for GameStatus
Source§fn clone(&self) -> GameStatus
fn clone(&self) -> GameStatus
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GameStatus
impl Debug for GameStatus
Source§impl Hash for GameStatus
impl Hash for GameStatus
Source§impl PartialEq for GameStatus
impl PartialEq for GameStatus
impl Copy for GameStatus
impl Eq for GameStatus
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.