pub fn compute_diff<F>(
old: &str,
new: &str,
options: DiffOptions<'_>,
formatter: F,
) -> DiffBundleExpand description
Computes a structured diff and passes non-empty hunks to a formatter.
ยงContract
- Requires: nothing (any
&strpair accepted). - Ensures: identical inputs yield an empty bundle without invoking
formatter; otherwise the bundle carries the computed hunks.