Trait InherentDiscreteMetric

Source
pub trait InherentDiscreteMetric<V: ?Sized> {
    // Required method
    fn distance_to(&self, v: &V) -> usize;
}
Expand description

allows metrics inherent to type

Required Methods§

Source

fn distance_to(&self, v: &V) -> usize

finds the distance between self and v

Implementors§