Skip to main content

apply

Function apply 

Source
pub fn apply(source: &str, edits: &[(Range<usize>, String)]) -> String
Expand 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.