#[repr(u8)]pub enum Pieces {
Show 15 variants
WPawn = 0,
BPawn = 1,
WKnight = 2,
BKnight = 3,
WBishop = 4,
BBishop = 5,
WRook = 6,
BRook = 7,
WQueen = 8,
BQueen = 9,
WKing = 10,
BKing = 11,
WCASTLE = 12,
BCASLTE = 13,
Void = 14,
}Variants§
WPawn = 0
BPawn = 1
WKnight = 2
BKnight = 3
WBishop = 4
BBishop = 5
WRook = 6
BRook = 7
WQueen = 8
BQueen = 9
WKing = 10
BKing = 11
WCASTLE = 12
BCASLTE = 13
Void = 14
Implementations§
Trait Implementations§
impl Copy for Pieces
impl Eq for Pieces
impl StructuralPartialEq for Pieces
Auto Trait Implementations§
impl Freeze for Pieces
impl RefUnwindSafe for Pieces
impl Send for Pieces
impl Sync for Pieces
impl Unpin for Pieces
impl UnsafeUnpin for Pieces
impl UnwindSafe for Pieces
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