pub trait DiscreteMetric<U: ?Sized, V: ?Sized> {
// Required method
fn distance(&self, u: &U, v: &V) -> usize;
}
Expand description
a discrete distance metric. It should obey the usual axioms of a metric space. An invalid metric will probably cause unexpected behaviors