#[repr(u8)]pub enum EnPassant {
Show 16 variants
A3 = 0,
B3 = 1,
C3 = 2,
D3 = 3,
E3 = 4,
F3 = 5,
G3 = 6,
H3 = 7,
A6 = 8,
B6 = 9,
C6 = 10,
D6 = 11,
E6 = 12,
F6 = 13,
G6 = 14,
H6 = 15,
}Expand description
A square that can hold an en-passant target.
Variants§
A3 = 0
B3 = 1
C3 = 2
D3 = 3
E3 = 4
F3 = 5
G3 = 6
H3 = 7
A6 = 8
B6 = 9
C6 = 10
D6 = 11
E6 = 12
F6 = 13
G6 = 14
H6 = 15
Implementations§
Source§impl EnPassant
EnPassant Finite Set API.
impl EnPassant
EnPassant Finite Set API.
pub const LEN: usize
pub const ALL: [Self; 16]
pub const fn name(self) -> &'static str
pub const fn eq(self, other: Self) -> bool
pub const fn index(self) -> usize
pub const fn from_index(index: u8) -> Option<Self>
pub fn iter() -> impl Iterator<Item = Self>
pub fn iter_rev() -> impl Iterator<Item = Self>
Trait Implementations§
impl Copy for EnPassant
impl Eq for EnPassant
Source§impl Ord for EnPassant
impl Ord for EnPassant
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for EnPassant
impl PartialOrd for EnPassant
impl StructuralPartialEq for EnPassant
Auto Trait Implementations§
impl Freeze for EnPassant
impl RefUnwindSafe for EnPassant
impl Send for EnPassant
impl Sync for EnPassant
impl Unpin for EnPassant
impl UnsafeUnpin for EnPassant
impl UnwindSafe for EnPassant
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