pub fn diff(old: &Buffer, new: &Buffer, dirty_rects: &[Rect]) -> Vec<Change>
Compute the differences between two buffers within specified dirty regions.