Struct vec_vp_tree::dist::string::Hamming
[−]
[src]
pub struct Hamming;
Hamming distance function for strings. Default as the fastest.
Returns the number of characters that are different between the two strings.
If the strings are not the same length, adds the length difference as well.
Trait Implementations
impl Copy for Hamming
[src]
impl Clone for Hamming
[src]
fn clone(&self) -> Hamming
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 Hamming
[src]
fn dist(&self, left: &&'a str, right: &&'a str) -> u64
Return the distance between left
and right
. Read more