pub enum LevenshteinOp {
Insert(usize),
Delete(usize),
Match,
Substitute(usize),
}Expand description
Levenshtein operation with associated cost.
Variants§
Trait Implementations§
Source§impl Clone for LevenshteinOp
impl Clone for LevenshteinOp
Source§fn clone(&self) -> LevenshteinOp
fn clone(&self) -> LevenshteinOp
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 Debug for LevenshteinOp
impl Debug for LevenshteinOp
Source§impl Hash for LevenshteinOp
impl Hash for LevenshteinOp
Source§impl<T> Operation<T> for LevenshteinOpwhere
T: Eq,
impl<T> Operation<T> for LevenshteinOpwhere
T: Eq,
Source§impl Ord for LevenshteinOp
impl Ord for LevenshteinOp
Source§fn cmp(&self, other: &LevenshteinOp) -> Ordering
fn cmp(&self, other: &LevenshteinOp) -> 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 LevenshteinOp
impl PartialEq for LevenshteinOp
Source§impl PartialOrd for LevenshteinOp
impl PartialOrd for LevenshteinOp
impl Copy for LevenshteinOp
impl Eq for LevenshteinOp
impl StructuralPartialEq for LevenshteinOp
Auto Trait Implementations§
impl Freeze for LevenshteinOp
impl RefUnwindSafe for LevenshteinOp
impl Send for LevenshteinOp
impl Sync for LevenshteinOp
impl Unpin for LevenshteinOp
impl UnwindSafe for LevenshteinOp
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