pub trait Resemblance<Query, Candidate>: Debug {
// Required method
fn resemblance(&self, query: &Query, candidate: &Candidate) -> f64;
// Provided method
fn perfect(&self, query: &Query, candidate: &Candidate) -> bool { ... }
}pub trait Resemblance<Query, Candidate>: Debug {
// Required method
fn resemblance(&self, query: &Query, candidate: &Candidate) -> f64;
// Provided method
fn perfect(&self, query: &Query, candidate: &Candidate) -> bool { ... }
}