Skip to main content

apply

Function apply 

Source
pub fn apply(text: &str, edits: &[(Span, String)]) -> String
Expand description

The text with edits (sorted, non-overlapping) applied. An edit whose span isn’t a valid range of text, or that overlaps the one before it, is skipped rather than panicking.