similarFunction capture_diff
Source pub fn capture_diff<Old, New>(
alg: Algorithm,
old: &Old,
old_range: Range<usize>,
new: &New,
new_range: Range<usize>,
) -> Vec<DiffOp>
Expand description
Creates a diff between old and new with the given algorithm capturing the ops.
This is like diff
but instead of using an
arbitrary hook this will always use Compact
+ Replace
+ Capture
and return the captured DiffOp
s.