Enum onejoker::poker::hand_value::HandLevelHigh
source · pub enum HandLevelHigh {
FiveOfAKind = 1,
StraightFlush = 2,
Quads = 3,
FullHouse = 4,
Flush = 5,
Straight = 6,
Trips = 7,
TwoPair = 8,
Pair = 9,
NoPair = 10,
}
Expand description
wiki | Traditional “high” poker hands
Variants§
FiveOfAKind = 1
StraightFlush = 2
Quads = 3
FullHouse = 4
Flush = 5
Straight = 6
Trips = 7
TwoPair = 8
Pair = 9
NoPair = 10
Trait Implementations§
source§impl Clone for HandLevelHigh
impl Clone for HandLevelHigh
source§fn clone(&self) -> HandLevelHigh
fn clone(&self) -> HandLevelHigh
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HandLevelHigh
impl Debug for HandLevelHigh
source§impl HandLevelTrait for HandLevelHigh
impl HandLevelTrait for HandLevelHigh
source§fn from_index(i: u32) -> HandLevelHigh
fn from_index(i: u32) -> HandLevelHigh
Convert an integer index to a level.
source§fn best() -> HandLevelHigh
fn best() -> HandLevelHigh
Level representing the best hand: this is the lowest number.
source§fn worst() -> HandLevelHigh
fn worst() -> HandLevelHigh
Level representing the worst hand: this is the highest number.
source§impl PartialEq for HandLevelHigh
impl PartialEq for HandLevelHigh
source§fn eq(&self, other: &HandLevelHigh) -> bool
fn eq(&self, other: &HandLevelHigh) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HandLevelHigh
impl PartialOrd for HandLevelHigh
source§fn partial_cmp(&self, other: &HandLevelHigh) -> Option<Ordering>
fn partial_cmp(&self, other: &HandLevelHigh) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for HandLevelHigh
impl StructuralPartialEq for HandLevelHigh
Auto Trait Implementations§
impl Freeze for HandLevelHigh
impl RefUnwindSafe for HandLevelHigh
impl Send for HandLevelHigh
impl Sync for HandLevelHigh
impl Unpin for HandLevelHigh
impl UnwindSafe for HandLevelHigh
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)