Function odds::slice::shared_prefix [] [src]

pub fn shared_prefix(a: &[u8], b: &[u8]) -> usize

Return the end index of the longest shared (equal) prefix of a and b.