pub struct Suffix {}Expand description
Suffix similarity is the length of the longest common suffix of the given sequences.
It’s a very dumb metric but it can work surprisingly well for comparing words in languages with an active use of prefixes.
Trait Implementations§
Source§impl Algorithm<usize> for Suffix
impl Algorithm<usize> for Suffix
Source§fn for_vec<E: Eq>(&self, s1: &[E], s2: &[E]) -> Result<usize>
fn for_vec<E: Eq>(&self, s1: &[E], s2: &[E]) -> Result<usize>
Calculate distance/similarity for vectors. Read more
Source§fn for_iter<C, E>(&self, s1: C, s2: C) -> Result<R>
fn for_iter<C, E>(&self, s1: C, s2: C) -> Result<R>
Calculate distance/similarity for iterators. Read more
Source§fn for_str(&self, s1: &str, s2: &str) -> Result<R>
fn for_str(&self, s1: &str, s2: &str) -> Result<R>
Calculate distance/similarity for strings. Read more
Auto Trait Implementations§
impl Freeze for Suffix
impl RefUnwindSafe for Suffix
impl Send for Suffix
impl Sync for Suffix
impl Unpin for Suffix
impl UnwindSafe for Suffix
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