pub enum DrawReason {
Stalemate,
InsufficientMaterial,
ThreefoldRepetition,
FiftyMoveRule,
Agreement,
}Expand description
Represents the reason for a draw
§Variants
Stalemate: The game is a stalemateInsufficientMaterial: The game is a draw due to insufficient materialThreefoldRepetition: The game is a draw due to threefold repetitionFiftyMoveRule: The game is a draw due to the fifty move ruleAgreement: The game is a draw due to agreement
Variants§
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 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 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