Enum indicium::simple::EddieMetric
source · pub enum EddieMetric {
Levenshtein,
DamerauLevenshtein,
Jaro,
JaroWinkler,
}
Expand description
This is used to select a string similarity metric implemented by Ilia Schelokov’s eddie crate.
Variants§
Levenshtein
DamerauLevenshtein
Jaro
JaroWinkler
Like Jaro similarity but gives a higher score to the strings that start with the same sequence of characters. See the detailed description.
Trait Implementations§
source§impl Clone for EddieMetric
impl Clone for EddieMetric
source§fn clone(&self) -> EddieMetric
fn clone(&self) -> EddieMetric
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EddieMetric
impl Debug for EddieMetric
source§impl Default for EddieMetric
impl Default for EddieMetric
source§fn default() -> EddieMetric
fn default() -> EddieMetric
Returns the “default value” for a type. Read more
source§impl Hash for EddieMetric
impl Hash for EddieMetric
source§impl Ord for EddieMetric
impl Ord for EddieMetric
source§fn cmp(&self, other: &EddieMetric) -> Ordering
fn cmp(&self, other: &EddieMetric) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EddieMetric
impl PartialEq for EddieMetric
source§fn eq(&self, other: &EddieMetric) -> bool
fn eq(&self, other: &EddieMetric) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EddieMetric
impl PartialOrd for EddieMetric
source§fn partial_cmp(&self, other: &EddieMetric) -> Option<Ordering>
fn partial_cmp(&self, other: &EddieMetric) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for EddieMetric
impl StructuralPartialEq for EddieMetric
Auto Trait Implementations§
impl Freeze for EddieMetric
impl RefUnwindSafe for EddieMetric
impl Send for EddieMetric
impl Sync for EddieMetric
impl Unpin for EddieMetric
impl UnwindSafe for EddieMetric
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more