[][src]Struct str_distance::token::TokenSort

pub struct TokenSort<D: DistanceMetric> { /* fields omitted */ }

TokenSort modifies the inner string distance dist to adjust for differences in word orders by reording words alphabetically.

For other types than strings this is just a delegate to the inner metric.

Trait Implementations

impl<D> DistanceMetric for TokenSort<D> where
    D: DistanceMetric
[src]

type Dist = <D as DistanceMetric>::Dist

Represents the data type in which this distance is evaluated.

Auto Trait Implementations

impl<D> RefUnwindSafe for TokenSort<D> where
    D: RefUnwindSafe

impl<D> Send for TokenSort<D> where
    D: Send

impl<D> Sync for TokenSort<D> where
    D: Sync

impl<D> Unpin for TokenSort<D> where
    D: Unpin

impl<D> UnwindSafe for TokenSort<D> where
    D: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.