fn slice_equality(one: &[u8], other: &[u8]) -> usize {
    let mut index = 0;

    for pair in one.iter().zip(other.iter()) {
        if pair.0 != pair.1 {
            return index;
        }
        index += 1;
    }

    index
}
// Returns index of first mismatch or len of smaller slice
Returns index of first mismatch or len of smaller slice
Returns index of first mismatch or len of smaller slice
fn slice_equality(one: &[u8], other: &[u8]) -> usize {
    let mut index = 0;
    for pair in one.iter().zip(other.iter()) {
        if pair.0 != pair.1 {
            return index;
        }
        index += 1;
    }
    index
}
fn slice_equality ( one : & [ u8 ] , other : & [ u8 ] ) -> usize { let mut index = 0 ; for pair in one . iter ( ) . zip ( other . iter ( ) ) { if pair . 0 != pair . 1 { return index ; } index += 1 ; } index }
Returns index of first mismatch or len of smaller slice
Returns index of first mismatch or len of smaller slice
one
&[u8]
other
&[u8]