pub trait MetricSpace: Sized {
    fn distance(&self, other: &Self) -> f64;
}
Expand description

A trait to compute distances between points.

Required Methods§

Returns the distance between self and other.

Implementors§