pub trait HandEvaluator<T> {
// Required method
fn eval(&self, hand: Hand) -> T;
// Provided method
fn eval_pair(&self, pair: [Hand; 2]) -> T
where T: Add<Output = T> { ... }
}Expand description
Trait for hand evaluators
Required Methods§
Provided Methods§
Implementors§
impl<F: Fn(Hand) -> T, T> HandEvaluator<T> for F
Functions are natural evaluators