Enum shakmaty::EnPassantMode
source · [−]pub enum EnPassantMode {
Legal,
PseudoLegal,
Always,
}
Expand description
When to include the en passant square.
Variants
Legal
Only if there is a fully legal en passant move.
PseudoLegal
Only when a pawn has been advanced by two steps and there is an enemy pawn next to it.
Follows the X-FEN specification.
Always
Whenever a pawn has been advanced by two steps.
Follows the FEN specification.
Trait Implementations
sourceimpl Clone for EnPassantMode
impl Clone for EnPassantMode
sourcefn clone(&self) -> EnPassantMode
fn clone(&self) -> EnPassantMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnPassantMode
impl Debug for EnPassantMode
sourceimpl Hash for EnPassantMode
impl Hash for EnPassantMode
sourceimpl PartialEq<EnPassantMode> for EnPassantMode
impl PartialEq<EnPassantMode> for EnPassantMode
sourcefn eq(&self, other: &EnPassantMode) -> bool
fn eq(&self, other: &EnPassantMode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for EnPassantMode
impl Eq for EnPassantMode
impl StructuralEq for EnPassantMode
impl StructuralPartialEq for EnPassantMode
Auto Trait Implementations
impl RefUnwindSafe for EnPassantMode
impl Send for EnPassantMode
impl Sync for EnPassantMode
impl Unpin for EnPassantMode
impl UnwindSafe for EnPassantMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more