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