pub enum Piece {
Dwarf,
Troll,
Thudstone,
Empty,
}Expand description
A piece on the Thud Board
Note: Empty squares are modelled as Pieces too, to avoid the horror of Option<Piece>
everywhere.
Variants§
Trait Implementations§
impl Copy 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