[][src]Struct str_distance::token::TokenSet

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

A TokenSet distance modifies the distance of its inner DistanceMetric to adjust for differences in word orders and word numbers by comparing the intersection of two str with each str.

http://chairnerd.seatgeek.com/fuzzywuzzy-fuzzy-string-matching-in-python/

Methods

impl<D: DistanceMetric> TokenSet<D>[src]

pub fn new(inner: D) -> Self[src]

Create a new TokenSet distance metric using distance D as base.

Trait Implementations

impl<D: DistanceMetric> DistanceMetric for TokenSet<D>[src]

type Dist = <D as DistanceMetric>::Dist

Represents the data type in which this distance is evaluated.

Auto Trait Implementations

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

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

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

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

impl<D> UnwindSafe for TokenSet<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.