[][src]Trait str_distance::DistanceElement

pub trait DistanceElement {
    fn distance<S, D>(&self, other: S, dist: &D) -> <D as DistanceMetric>::Dist
    where
        S: AsRef<str>,
        D: DistanceMetric
; }

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

Loading content...

Implementors

impl<T: AsRef<str>> DistanceElement for T[src]

Loading content...