Struct analiticcl::types::Distance[][src]

pub struct Distance {
    pub ld: CharIndexType,
    pub lcs: u16,
    pub prefixlen: u16,
    pub suffixlen: u16,
    pub freq: u32,
    pub lex: f32,
    pub samecase: bool,
    pub prescore: Option<f64>,
}

Fields

ld: CharIndexType

Levenshtein (or Damarau-Levenshtein) distance

lcs: u16

Longest common substring length

prefixlen: u16

Common prefix length

suffixlen: u16

Common suffix length

freq: u32

Absolute frequency count

lex: f32

Lexicon weight (usually simply 1.0 if an item is in a validated lexicon, and 0.0 if in a background corpus)

samecase: bool

Is the casing different or not?

prescore: Option<f64>

Some variants may be pre-scored already if they were found in an explicit variant list, the prescore component will be as a component in computing the final csore

Trait Implementations

impl Clone for Distance[src]

impl Debug for Distance[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.