Enum cozy_chess::Piece
source · pub enum Piece {
Pawn,
Knight,
Bishop,
Rook,
Queen,
King,
}
Expand description
A chess piece. Pieces are ordered by approximate material value.
Variants§
Implementations§
Trait Implementations§
source§impl Ord for Piece
impl Ord for Piece
source§impl PartialEq for Piece
impl PartialEq for Piece
source§impl PartialOrd for Piece
impl PartialOrd for Piece
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 Piece
impl Eq for Piece
impl StructuralPartialEq for Piece
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnwindSafe for Piece
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