Skip to main content

hamming_distance

Function hamming_distance 

Source
pub fn hamming_distance(a: &[u8], b: &[u8]) -> Option<u64>
Expand description

Compute the Hamming distance between two byte slices of equal length.

Returns None if the slices differ in length.