Enum friendly_chess::chess::PieceType
source · #[repr(u8)]pub enum PieceType {
PAWN,
KNIGHT,
BISHOP,
ROOK,
QUEEN,
KING,
}Variants§
Implementations§
Trait Implementations§
source§impl Ord for PieceType
impl Ord for PieceType
source§impl PartialEq<PieceType> for PieceType
impl PartialEq<PieceType> for PieceType
source§impl PartialOrd<PieceType> for PieceType
impl PartialOrd<PieceType> for PieceType
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 moreimpl Copy for PieceType
impl Eq for PieceType
impl StructuralEq for PieceType
impl StructuralPartialEq for PieceType
Auto Trait Implementations§
impl RefUnwindSafe for PieceType
impl Send for PieceType
impl Sync for PieceType
impl Unpin for PieceType
impl UnwindSafe for PieceType
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