pub enum Result {
Show 15 variants
Win,
Checkmated,
Agreed,
Repetition,
Timeout,
Resigned,
Stalemate,
Lose,
Insufficient,
_50move,
Abandoned,
Kingofthehill,
Threecheck,
Timevsinsufficient,
Bughousepartnerlose,
}
Expand description
Player result: * win
- Win * checkmated
- Checkmated * agreed
- Draw agreed * repetition
- Draw by repetition * timeout
- Timeout * resigned
- Resigned * stalemate
- Stalemate * lose
- Lose * insufficient
- Insufficient material * 50
- Draw by 50-move rule * abandoned
- abandoned * kingofthehill
- Opponent king reached the hill * threecheck
- Checked for the 3rd time * timevsinsufficient
- Draw by timeout vs insufficient material * bughousepartnerlose
- Bughouse partner lost
Variants§
Win
Checkmated
Agreed
Repetition
Timeout
Resigned
Stalemate
Lose
Insufficient
_50move
Abandoned
Kingofthehill
Threecheck
Timevsinsufficient
Bughousepartnerlose
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Result
impl<'de> Deserialize<'de> for Result
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Result
impl Ord for Result
Source§impl PartialOrd for Result
impl PartialOrd for Result
impl Copy for Result
impl Eq for Result
impl StructuralPartialEq for Result
Auto Trait Implementations§
impl Freeze for Result
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnwindSafe for Result
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.