pub enum PieceKind {
Pawn,
Knight,
Bishop,
Rook,
Queen,
King,
}Expand description
Chess role of a piece.
Variants§
Pawn
The Pawn piece on a Chess board.
Knight
The Knight piece on a Chess board.
Bishop
The Bishop piece on a Chess board.
Rook
The Rook piece on a Chess board.
Queen
The Queen piece on a Chess board.
King
The King piece on a Chess board.
Trait Implementations§
impl Copy for PieceKind
impl Eq for PieceKind
Source§impl Ord for PieceKind
impl Ord for PieceKind
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 PieceKind
impl PartialOrd for PieceKind
impl StructuralPartialEq for PieceKind
Auto Trait Implementations§
impl Freeze for PieceKind
impl RefUnwindSafe for PieceKind
impl Send for PieceKind
impl Sync for PieceKind
impl Unpin for PieceKind
impl UnsafeUnpin for PieceKind
impl UnwindSafe for PieceKind
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