pub struct DamerauLevenshtein;Expand description
Damerau-Levenshtein distance function for strings.
Returns the the minimum number of insertions, deletions, and substitutions required to change one string into the other, also counts swaps of adjacent characters.
Trait Implementations§
Source§impl Clone for DamerauLevenshtein
impl Clone for DamerauLevenshtein
Source§fn clone(&self) -> DamerauLevenshtein
fn clone(&self) -> DamerauLevenshtein
Returns a duplicate 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<'a> DistFn<&'a str> for DamerauLevenshtein
impl<'a> DistFn<&'a str> for DamerauLevenshtein
Source§impl DistFn<String> for DamerauLevenshtein
impl DistFn<String> for DamerauLevenshtein
impl Copy for DamerauLevenshtein
Auto Trait Implementations§
impl Freeze for DamerauLevenshtein
impl RefUnwindSafe for DamerauLevenshtein
impl Send for DamerauLevenshtein
impl Sync for DamerauLevenshtein
impl Unpin for DamerauLevenshtein
impl UnwindSafe for DamerauLevenshtein
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