pub fn diff_units(
before: &[DeliveryUnit],
after: &[DeliveryUnit],
) -> Vec<(DeliveryUnit, UnitChange)>Expand description
The units that differ between two states of one file, keyed by unit key:
a key only in after is UnitChange::Added, a key in both whose hash
differs is UnitChange::Modified (the after unit), a key only in
before is UnitChange::Deleted (the before unit, so its order key
still places it). Unchanged units are not delivered again.