derive partialeq for rank and suit (obvious impl)

This commit is contained in:
2026-03-31 23:16:15 +01:00
committed by oreodave
parent cea30e0173
commit 7009d14965

View File

@@ -2,7 +2,7 @@ use std::cmp::Ordering;
use std::convert::TryFrom;
use std::hash::{Hash, Hasher};
#[derive(Debug, Copy, Clone)]
#[derive(PartialEq, Debug, Copy, Clone)]
pub enum Rank {
Three = 0,
Four,
@@ -19,7 +19,7 @@ pub enum Rank {
Two,
}
#[derive(Debug, Copy, Clone)]
#[derive(PartialEq, Debug, Copy, Clone)]
pub enum Suit {
Diamond = 0,
Club,