pub trait MatchFunc {
    // Required method
    fn score(&self, a: u8, b: u8) -> i32;
}
Expand description

Trait required to instantiate a Scoring instance

Required Methods§

source

fn score(&self, a: u8, b: u8) -> i32

Implementors§

source§

impl MatchFunc for MatchParams

source§

impl<F> MatchFunc for Fwhere F: Fn(u8, u8) -> i32,

The trait Matchfunc is also implemented for Fn(u8, u8) -> i32 so that Scoring can be instantiated using closures and custom user defined functions