Trait seqalign::Measure
[−]
[src]
pub trait Measure<T> { type Operation: Operation<T>; fn operations(&self) -> &[Self::Operation]; }
Trait for edit distance measures.
Associated Types
Required Methods
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
.
Implementors
impl<T> Measure<T> for Levenshtein where
T: Eq, type Operation = LevenshteinOp;impl<T> Measure<T> for LevenshteinDamerau where
T: Eq, type Operation = LevenshteinDamerauOp;impl<T> Measure<T> for LCS where
T: Eq, type Operation = LCSOp;