pub enum Winnability {
Winnable {
helpmate: Vec<ChessMove>,
},
Unwinnable,
}Expand description
Result of a winnability analysis for the intended winner.
Variants§
Winnable
Helpmate is achievable for the intended winner; helpmate is a
possible sequence of moves leading to checkmate.
Unwinnable
Helpmate is provably impossible for the intended winner.
Trait Implementations§
Source§impl Clone for Winnability
impl Clone for Winnability
Source§fn clone(&self) -> Winnability
fn clone(&self) -> Winnability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Winnability
impl Debug for Winnability
impl Eq for Winnability
Source§impl PartialEq for Winnability
impl PartialEq for Winnability
Source§fn eq(&self, other: &Winnability) -> bool
fn eq(&self, other: &Winnability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Winnability
Auto Trait Implementations§
impl Freeze for Winnability
impl RefUnwindSafe for Winnability
impl Send for Winnability
impl Sync for Winnability
impl Unpin for Winnability
impl UnsafeUnpin for Winnability
impl UnwindSafe for Winnability
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