Trait onejoker::poker::hand_value::HandValueTrait
source · pub trait HandValueTrait {
// Required methods
fn value(&self) -> u64;
fn best() -> Self;
fn worst() -> Self;
fn full_name(&self) -> String;
fn ordered_for_display(&self, h: &Hand) -> aResult<Hand>;
}
Expand description
wiki | Hand value common code Common interface to hand value objects.
Required Methods§
sourcefn ordered_for_display(&self, h: &Hand) -> aResult<Hand>
fn ordered_for_display(&self, h: &Hand) -> aResult<Hand>
Return a new hand re-ordered for more meaningful display.
Object Safety§
This trait is not object safe.