pub fn apply(source: &str, edits: &[(Range<usize>, String)]) -> StringExpand description
Apply non-overlapping byte-range replacements to a source string.
Replacements are applied back-to-front (highest offset first) so that earlier byte offsets remain valid after later replacements.