pub trait DistanceElement {
// Required method
fn distance<S, D>(&self, other: S, dist: &D) -> <D as DistanceMetric>::Dist
where S: AsRef<str>,
D: DistanceMetric;
}Expand description
Convenience trait to use a distance on a type directly.
Required Methods§
fn distance<S, D>(&self, other: S, dist: &D) -> <D as DistanceMetric>::Dist
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.