pub enum HandCategory {
HighCard,
Pair,
TwoPair,
ThreeOfAKind,
Straight,
Flush,
FullHouse,
FourOfAKind,
StraightFlush,
}Expand description
Hand categories, ordered from weakest to strongest.
Variants§
HighCard
No pair or better.
Pair
One pair.
TwoPair
Two pairs.
ThreeOfAKind
Three cards of one rank.
Straight
Five consecutive ranks, including the ace-low wheel.
Flush
Five cards of one suit.
FullHouse
Three of one rank and a pair of another.
FourOfAKind
Four cards of one rank.
StraightFlush
A straight in one suit, including the royal flush.
Trait Implementations§
Source§impl Clone for HandCategory
impl Clone for HandCategory
impl Copy for HandCategory
Source§impl Debug for HandCategory
impl Debug for HandCategory
impl Eq for HandCategory
Source§impl Hash for HandCategory
impl Hash for HandCategory
Source§impl Ord for HandCategory
impl Ord for HandCategory
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HandCategory
impl PartialEq for HandCategory
Source§impl PartialOrd for HandCategory
impl PartialOrd for HandCategory
impl StructuralPartialEq for HandCategory
Auto Trait Implementations§
impl Freeze for HandCategory
impl RefUnwindSafe for HandCategory
impl Send for HandCategory
impl Sync for HandCategory
impl Unpin for HandCategory
impl UnsafeUnpin for HandCategory
impl UnwindSafe for HandCategory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more