Enum candidate::GameResult
source · pub enum GameResult {
WhiteCheckmates,
WhiteResigns,
BlackCheckmates,
BlackResigns,
Stalemate,
DrawAccepted,
DrawDeclared,
}
Expand description
What was the result of this game?
Variants§
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 Hash for GameResult
impl Hash for GameResult
source§impl Ord for GameResult
impl Ord for GameResult
source§fn cmp(&self, other: &GameResult) -> Ordering
fn cmp(&self, other: &GameResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<GameResult> for GameResult
impl PartialEq<GameResult> for GameResult
source§fn eq(&self, other: &GameResult) -> bool
fn eq(&self, other: &GameResult) -> bool
source§impl PartialOrd<GameResult> for GameResult
impl PartialOrd<GameResult> for GameResult
source§fn partial_cmp(&self, other: &GameResult) -> Option<Ordering>
fn partial_cmp(&self, other: &GameResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more