Struct vec_vp_tree::dist::string::Levenshtein
[−]
[src]
pub struct Levenshtein;
Levenshtein distance (edit-distance) function for strings.
Returns the the minimum number of insertions, deletions, and substitutions required to change one string into the other.
Trait Implementations
impl Copy for Levenshtein
[src]
impl Clone for Levenshtein
[src]
fn clone(&self) -> Levenshtein
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> DistFn<&'a str> for Levenshtein
[src]
fn dist(&self, left: &&'a str, right: &&'a str) -> u64
Return the distance between left
and right
. Read more