find_contiguous_diff

Function find_contiguous_diff 

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

Compute the minimal contiguous diff window between two equal-length slices. Returns Some((start, end)) where [start, end) is the changed window; None if identical.