Enum stockfish_core::core::Rank
source · #[repr(u8)]
pub enum Rank {
_1,
_2,
_3,
_4,
_5,
_6,
_7,
_8,
}Expand description
A rank, 1 through 8, on a chess board. The variants for this enum are prefixed with an underscore since identifiers may not begin with a number.
Variants§
Implementations§
Trait Implementations§
source§impl BitAndAssign<Rank> for Bitboard
impl BitAndAssign<Rank> for Bitboard
source§const fn bitand_assign(&mut self, rhs: Rank)
const fn bitand_assign(&mut self, rhs: Rank)
Performs the
&= operation. Read moresource§impl BitOrAssign<Rank> for Bitboard
impl BitOrAssign<Rank> for Bitboard
source§const fn bitor_assign(&mut self, rhs: Rank)
const fn bitor_assign(&mut self, rhs: Rank)
Performs the
|= operation. Read moresource§impl BitXorAssign<Rank> for Bitboard
impl BitXorAssign<Rank> for Bitboard
source§const fn bitxor_assign(&mut self, rhs: Rank)
const fn bitxor_assign(&mut self, rhs: Rank)
Performs the
^= operation. Read moresource§impl IntoIterator for Rank
impl IntoIterator for Rank
source§impl Ord for Rank
impl Ord for Rank
1.21.0 · 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 PartialEq<Rank> for Rank
impl PartialEq<Rank> for Rank
source§impl PartialOrd<Rank> for Rank
impl PartialOrd<Rank> for Rank
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more