Struct seqalign::measures::Levenshtein
source · [−]pub struct Levenshtein { /* private fields */ }
Expand description
Levenshtein distance.
Levenshtein distance uses the following operations:
- Insert
- Delete
- Substitute
- Match
Implementations
Trait Implementations
sourceimpl Clone for Levenshtein
impl Clone for Levenshtein
sourcefn clone(&self) -> Levenshtein
fn clone(&self) -> Levenshtein
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Levenshtein
impl Debug for Levenshtein
sourceimpl<T> Measure<T> for Levenshtein where
T: Eq,
impl<T> Measure<T> for Levenshtein where
T: Eq,
type Operation = LevenshteinOp
type Operation = LevenshteinOp
The edit operations associated with the measure.
sourcefn operations(&self) -> &[Self::Operation]
fn operations(&self) -> &[Self::Operation]
Get a slice with the measure’s operations. Typically, this contains
all the enum variants of the associated type Operation
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Levenshtein
impl Send for Levenshtein
impl Sync for Levenshtein
impl Unpin for Levenshtein
impl UnwindSafe for Levenshtein
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more