Trait topology_traits::QuasiMetric
source · 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()
.