pub fn hamming_bytes(bytes_a: &[u8], bytes_b: &[u8]) -> usize {
    if bytes_a.len() <= bytes_b.len() {
        hamming_distance(&mut bytes_a.iter(), &mut bytes_b.iter())
    } else {
        hamming_distance(&mut bytes_b.iter(), &mut bytes_a.iter())
    }
}
/// Calculates the Hamming distance between the two byte slices.

Calculates the Hamming distance between the two byte slices.
Calculates the Hamming distance between the two byte slices .
pub fn hamming_bytes(bytes_a: &[u8], bytes_b: &[u8]) -> usize {
    if bytes_a.len() <= bytes_b.len() {
        hamming_distance(&mut bytes_a.iter(), &mut bytes_b.iter())
    } else {
        hamming_distance(&mut bytes_b.iter(), &mut bytes_a.iter())
    }
}
pub fn hamming_bytes ( bytes_a : & [ u8 ] , bytes_b : & [ u8 ] ) -> usize { if bytes_a . len ( ) <= bytes_b . len ( ) { hamming_distance ( & mut bytes_a . iter ( ) , & mut bytes_b . iter ( ) ) } else { hamming_distance ( & mut bytes_b . iter ( ) , & mut bytes_a . iter ( ) ) } }
Calculates the Hamming distance between the two byte slices.
Calculates the Hamming distance between the two byte slices .
bytes_a
&[u8]
bytes_b
&[u8]
bytes_a
&[u8]
bytes_b
&[u8]