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.