14 lines
300 B
Rust
14 lines
300 B
Rust
/// Hand classes, weakest to strongest (the derived order is the poker order).
|
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
pub enum Category {
|
|
HighCard,
|
|
Pair,
|
|
TwoPair,
|
|
ThreeOfAKind,
|
|
Straight,
|
|
Flush,
|
|
FullHouse,
|
|
FourOfAKind,
|
|
StraightFlush,
|
|
}
|