fn changed(old: &[u8], new: &[u8]) -> Option<Range<usize>>
The range where new differs from old, which has the same length.
new
old
Compares whole chunks first, so unchanged memory is skipped without testing each byte.