pub enum WinReason {
Checkmate,
Resignation,
Time,
}Expand description
Represents the reason for a win
§Variants
Checkmate: The game is a win due to checkmateResignation: The game is a win due to resignationTime: The game is a win due to time
Variants§
Trait Implementations§
impl Copy for WinReason
impl Eq for WinReason
impl StructuralPartialEq for WinReason
Auto Trait Implementations§
impl Freeze for WinReason
impl RefUnwindSafe for WinReason
impl Send for WinReason
impl Sync for WinReason
impl Unpin for WinReason
impl UnwindSafe for WinReason
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