summaryrefslogtreecommitdiff
path: root/model/src/color.rs
diff options
context:
space:
mode:
Diffstat (limited to 'model/src/color.rs')
-rw-r--r--model/src/color.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/model/src/color.rs b/model/src/color.rs
index 26a1069..8a4d2a5 100644
--- a/model/src/color.rs
+++ b/model/src/color.rs
@@ -5,9 +5,10 @@ use std::fmt::Display;
/// The color of a piece
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
+#[repr(C)]
pub enum PieceColor {
- Light,
- Dark,
+ Light = 0,
+ Dark = 1,
}
impl Display for PieceColor {