pub fn apply_edits(
root: &Utf8Path,
edits: &[SpanReplacement],
allow_multi_file: bool,
) -> Result<Vec<AppliedPatch>>Expand description
Apply a set of edits inside root.
With allow_multi_file unset, the edits must all target the same file;
otherwise the whole batch is refused so the default stays single-file. Edits
are applied from the highest start line down so earlier splices do not shift
the offsets of later ones in the same file.