[board] Derive a bunch of traits for Color, Shape, Piece, and Square

This commit is contained in:
Eryn Wells 2023-12-26 09:15:24 -07:00
parent 1da827a3bb
commit e0f1e1f6ff
2 changed files with 26 additions and 4 deletions

View file

@ -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,