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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> DistFn<&'a str> for Hamming
[src]

Return the distance between left and right. Read more

impl DistFn<String> for Hamming
[src]

Return the distance between left and right. Read more