[−][src]Trait str_distance::DistanceElement
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 where
S: AsRef<str>,
D: DistanceMetric,
S: AsRef<str>,
D: DistanceMetric,
Implementors
impl<T: AsRef<str>> DistanceElement for T
[src]
fn distance<S, D>(&self, other: S, dist: &D) -> <D as DistanceMetric>::Dist where
S: AsRef<str>,
D: DistanceMetric,
[src]
S: AsRef<str>,
D: DistanceMetric,