pub enum DrawReason {
Stalemate,
InsufficientMaterial,
ThreefoldRepetition,
FiftyMoveRule,
Agreement,
}Expand description
Represents the reason for a draw
Variants§
Stalemate
The Game is a stalemate
InsufficientMaterial
The Game is a draw due to insufficient material
ThreefoldRepetition
The Game is a draw due to threefold repetition
FiftyMoveRule
The Game is a draw due to the fifty move rule
Agreement
The Game is a draw due to agreement
Trait Implementations§
Source§impl Clone for DrawReason
impl Clone for DrawReason
Source§fn clone(&self) -> DrawReason
fn clone(&self) -> DrawReason
Returns a duplicate 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 DrawReason
impl Debug for DrawReason
Source§impl Display for DrawReason
impl Display for DrawReason
Source§impl PartialEq for DrawReason
impl PartialEq for DrawReason
impl Copy for DrawReason
impl Eq for DrawReason
impl StructuralPartialEq for DrawReason
Auto Trait Implementations§
impl Freeze for DrawReason
impl RefUnwindSafe for DrawReason
impl Send for DrawReason
impl Sync for DrawReason
impl Unpin for DrawReason
impl UnsafeUnpin for DrawReason
impl UnwindSafe for DrawReason
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