Type Alias onejoker::poker::high_hand::HandValueHigh
source · pub type HandValueHigh = HandValue<HandLevelHigh>;
Expand description
wiki | Representing traditional “high” poker hands.
HandValue
subclass for traditional “high” poker hands.
Aliased Type§
struct HandValueHigh {
pub level: HandLevelHigh,
pub ranks: Vec<Rank>,
pub value: u64,
}
Fields§
§level: HandLevelHigh
Value category of the hand; type varies by game.
ranks: Vec<Rank>
Array of ranks of the cards in the hand.
value: u64
Calculated numeric comparator: low is better.
Implementations§
source§impl HandValueHigh
impl HandValueHigh
sourcepub fn new(level: HandLevelHigh, ranks: &[Rank]) -> HandValueHigh
pub fn new(level: HandLevelHigh, ranks: &[Rank]) -> HandValueHigh
Create a new HandValueHigh
] object.
Trait Implementations§
source§impl HandValueTrait for HandValueHigh
impl HandValueTrait for HandValueHigh
source§fn best() -> HandValueHigh
fn best() -> HandValueHigh
Best hand for this game
source§fn worst() -> HandValueHigh
fn worst() -> HandValueHigh
Worst hand for this game