Struct vec_vp_tree::dist::string::JaroWinkler
[−]
[src]
pub struct JaroWinkler;
Distance function for strings using the Jaro similarity factor, optimized for when strings are expected to have a common prefix.
Returns a number in [0, 100], inversely proportional to the similarity between
the two strings, where 0 is exactly the same, and 100 is not at all similar.
Trait Implementations
impl Copy for JaroWinkler[src]
impl Clone for JaroWinkler[src]
fn clone(&self) -> JaroWinkler
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 JaroWinkler[src]
fn dist(&self, left: &&'a str, right: &&'a str) -> u64
Return the distance between left and right. Read more