pub trait MatchFunc { // Required method fn score(&self, a: u8, b: u8) -> i32; }
Trait required to instantiate a Scoring instance
The trait Matchfunc is also implemented for Fn(u8, u8) -> i32 so that Scoring can be instantiated using closures and custom user defined functions