Struct vec_vp_tree::dist::string::Jaro
[−]
[src]
pub struct Jaro;
Distance function for strings using the Jaro similarity factor.
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 Jaro
[src]
impl Clone for Jaro
[src]
fn clone(&self) -> Jaro
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 Jaro
[src]
fn dist(&self, left: &&'a str, right: &&'a str) -> u64
Return the distance between left
and right
. Read more