pub trait QuasiMetric<T = f64> {
    // Required method
    fn distance(self, to: Self) -> T;
}
Expand description

All elements in a quasi metric space should implement this trait.

If the struct implementing this trait also implements Topology, the distance(to) method should be equivalent to self.shortest_path(to).length().

Required Methods§

source

fn distance(self, to: Self) -> T

Returns the length of the shortest path between the two points.

Implementors§