Enum board_game_traits::GameResult
source · pub enum GameResult {
WhiteWin = 0,
BlackWin = 1,
Draw = 2,
}
Expand description
The result of a game after it has finished.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for GameResult
impl Clone for GameResult
source§fn clone(&self) -> GameResult
fn clone(&self) -> GameResult
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 GameResult
impl Debug for GameResult
source§impl Not for GameResult
impl Not for GameResult
source§impl PartialEq for GameResult
impl PartialEq for GameResult
source§fn eq(&self, other: &GameResult) -> bool
fn eq(&self, other: &GameResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GameResult
impl Eq for GameResult
impl StructuralEq for GameResult
impl StructuralPartialEq for GameResult
Auto Trait Implementations§
impl RefUnwindSafe for GameResult
impl Send for GameResult
impl Sync for GameResult
impl Unpin for GameResult
impl UnwindSafe for GameResult
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