replace_source_content

Function replace_source_content 

Source
pub fn replace_source_content(
    source: impl Into<String>,
    updates: impl IntoIterator<Item = (Range<usize>, impl AsRef<str>)>,
) -> String
Expand description

Utility function to change source content ranges with provided updates. Assumes that the updates are sorted.