[board] Derive a bunch of traits for Color, Shape, Piece, and Square
This commit is contained in:
parent
1da827a3bb
commit
e0f1e1f6ff
2 changed files with 26 additions and 4 deletions
|
@ -9,7 +9,7 @@ pub struct ParseSquareError;
|
|||
#[derive(Debug)]
|
||||
pub struct SquareOutOfBoundsError;
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
|
||||
pub struct Square {
|
||||
pub rank: u8,
|
||||
pub file: u8,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue