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
impl Copy for GameResult
Source§impl Debug for GameResult
impl Debug for GameResult
impl Eq for GameResult
Source§impl Hash for GameResult
impl Hash for GameResult
Source§impl Ord for GameResult
impl Ord for GameResult
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GameResult
impl PartialEq for GameResult
Source§impl PartialOrd for GameResult
impl PartialOrd for GameResult
impl StructuralPartialEq for GameResult
Auto Trait Implementations§
impl Freeze for GameResult
impl RefUnwindSafe for GameResult
impl Send for GameResult
impl Sync for GameResult
impl Unpin for GameResult
impl UnsafeUnpin 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