derive partialeq for rank and suit (obvious impl)
This commit is contained in:
@@ -2,7 +2,7 @@ use std::cmp::Ordering;
|
|||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
use std::hash::{Hash, Hasher};
|
use std::hash::{Hash, Hasher};
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
pub enum Rank {
|
pub enum Rank {
|
||||||
Three = 0,
|
Three = 0,
|
||||||
Four,
|
Four,
|
||||||
@@ -19,7 +19,7 @@ pub enum Rank {
|
|||||||
Two,
|
Two,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(PartialEq, Debug, Copy, Clone)]
|
||||||
pub enum Suit {
|
pub enum Suit {
|
||||||
Diamond = 0,
|
Diamond = 0,
|
||||||
Club,
|
Club,
|
||||||
|
|||||||
Reference in New Issue
Block a user