pub enum WinReason {
Checkmate,
Resignation,
Time,
}Expand description
Represents winning reasons
Variants§
Checkmate
The Game was won due to checkmate
Resignation
The Game was won due to resignation
Time
The Game was won due to time
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 UnsafeUnpin 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