pub trait SymbolIter {
type Item: Eq;
type Iter<'a>: Iterator<Item = Self::Item>
where Self: 'a;
// Required methods
fn symbol_count(&self) -> usize;
fn symbol_iter(&self) -> Self::Iter<'_>;
}
Expand description
helper trait for computing edit distances by iteration
Required Associated Types§
Required Methods§
Sourcefn symbol_count(&self) -> usize
fn symbol_count(&self) -> usize
returns the length of the sequence
Sourcefn symbol_iter(&self) -> Self::Iter<'_>
fn symbol_iter(&self) -> Self::Iter<'_>
returns an iterator for comparing characters for an edit distance. Since the computation may require multiple iterations, the returned iterator shouldn’t change length or sequence without self being mutated
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.