pub trait Similarity<Q, C> {
// Required method
fn score(&self, query: &Q, candidate: &C) -> f64;
// Provided method
fn exact(&self, query: &Q, candidate: &C) -> bool { ... }
}pub trait Similarity<Q, C> {
// Required method
fn score(&self, query: &Q, candidate: &C) -> f64;
// Provided method
fn exact(&self, query: &Q, candidate: &C) -> bool { ... }
}