Enum levenshtein_automata::Distance
source · [−]pub enum Distance {
Exact(u8),
AtLeast(u8),
}
Expand description
Levenshtein Distance computed by a Levenshtein Automaton.
Levenshtein automata can only compute the exact Levenshtein distance
up to a given max_distance
.
Over this distance, the automaton will invariably
return Distance::AtLeast(max_distance + 1)
.
Variants
Exact(u8)
AtLeast(u8)
Implementations
Trait Implementations
sourceimpl PartialOrd<Distance> for Distance
impl PartialOrd<Distance> for Distance
impl Copy for Distance
impl Eq for Distance
impl StructuralEq for Distance
impl StructuralPartialEq for Distance
Auto Trait Implementations
impl RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl UnwindSafe for Distance
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more