pub enum Square {
Show 16 variants
A1,
B1,
C1,
D1,
A2,
B2,
C2,
D2,
A3,
B3,
C3,
D3,
A4,
B4,
C4,
D4,
}
Expand description
Represents a square on the board.
+----+----+----+----+-> X
| A1 | B1 | C1 | D1 |
+----+----+----+----+
| A2 | B2 | C2 | D2 |
+----+----+----+----+
| A3 | B3 | C3 | D3 |
+----+----+----+----+
| A4 | B4 | C4 | D4 |
+----+----+----+----+
V Y
Variants§
Implementations§
Trait Implementations§
source§impl BitAndAssign<&Square> for BitBoard
impl BitAndAssign<&Square> for BitBoard
source§fn bitand_assign(&mut self, other: &Square)
fn bitand_assign(&mut self, other: &Square)
Performs the
&=
operation. Read moresource§impl BitAndAssign<Square> for BitBoard
impl BitAndAssign<Square> for BitBoard
source§fn bitand_assign(&mut self, other: Square)
fn bitand_assign(&mut self, other: Square)
Performs the
&=
operation. Read moresource§impl BitOrAssign<&Square> for BitBoard
impl BitOrAssign<&Square> for BitBoard
source§fn bitor_assign(&mut self, other: &Square)
fn bitor_assign(&mut self, other: &Square)
Performs the
|=
operation. Read moresource§impl BitOrAssign<Square> for BitBoard
impl BitOrAssign<Square> for BitBoard
source§fn bitor_assign(&mut self, other: Square)
fn bitor_assign(&mut self, other: Square)
Performs the
|=
operation. Read moresource§impl BitXorAssign<&Square> for BitBoard
impl BitXorAssign<&Square> for BitBoard
source§fn bitxor_assign(&mut self, other: &Square)
fn bitxor_assign(&mut self, other: &Square)
Performs the
^=
operation. Read moresource§impl BitXorAssign<Square> for BitBoard
impl BitXorAssign<Square> for BitBoard
source§fn bitxor_assign(&mut self, other: Square)
fn bitxor_assign(&mut self, other: Square)
Performs the
^=
operation. Read moresource§impl Ord for Square
impl Ord for Square
source§impl PartialEq<Square> for Square
impl PartialEq<Square> for Square
source§impl PartialOrd<Square> for Square
impl PartialOrd<Square> for Square
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