Struct seqalign::measures::Levenshtein
[−]
[src]
pub struct Levenshtein { /* fields omitted */ }
Levenshtein distance.
Levenshtein distance uses the following operations:
- Insert
- Delete
- Substitute
- Match
Methods
impl Levenshtein
[src]
Construct a Levenshtein measure with the associated insertion, deletion, and substitution cost.
Trait Implementations
impl Clone for Levenshtein
[src]
fn clone(&self) -> Levenshtein
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Levenshtein
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> Measure<T> for Levenshtein where
T: Eq,
[src]
T: Eq,
type Operation = LevenshteinOp
The edit operations associated with the measure.
fn operations(&self) -> &[Self::Operation]
[src]
Get a slice with the measure's operations. Typically, this contains all the enum variants of the associated type Operation
. Read more