Struct onejoker::poker::hand_value::HandDescription
source · #[repr(C)]pub struct HandDescription {
pub hand: Hand,
pub value: HandValue,
pub scale: Scale,
pub level: HandLevel,
pub length: u8,
pub extras: HandExtras,
}
Expand description
wiki | Info about an evaluated hand
Describes all the information about a hand after evaluation.
Fields§
§hand: Hand
Copy of the hand under evaluation. Modified during evaluation.
value: HandValue
Comparison value: lower is better
scale: Scale
Which game type we are evaluating for
level: HandLevel
Level of the hand
length: u8
“Meaningful” length
extras: HandExtras
Extra game-specific information about the hand
Implementations§
source§impl HandDescription
impl HandDescription
sourcepub fn from_value(hand: &Hand, scale: Scale, value: HandValue) -> Self
pub fn from_value(hand: &Hand, scale: Scale, value: HandValue) -> Self
Create a new HandDescription object from HandValue
sourcepub fn hand_to_string(&self) -> String
pub fn hand_to_string(&self) -> String
Print relevant part of hand
Trait Implementations§
source§impl Clone for HandDescription
impl Clone for HandDescription
source§fn clone(&self) -> HandDescription
fn clone(&self) -> HandDescription
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 HandDescription
impl Debug for HandDescription
source§impl Default for HandDescription
impl Default for HandDescription
source§impl Display for HandDescription
impl Display for HandDescription
source§impl Hash for HandDescription
impl Hash for HandDescription
source§impl Ord for HandDescription
impl Ord for HandDescription
source§impl PartialEq for HandDescription
impl PartialEq for HandDescription
source§impl PartialOrd for HandDescription
impl PartialOrd for HandDescription
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 HandDescription
impl Eq for HandDescription
Auto Trait Implementations§
impl Freeze for HandDescription
impl RefUnwindSafe for HandDescription
impl Send for HandDescription
impl Sync for HandDescription
impl Unpin for HandDescription
impl UnwindSafe for HandDescription
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
)