pub fn replace_occurrences(
source: &str,
occurrences: &[IdentifierOccurrence],
replacement: &str,
) -> (String, usize)Expand description
Splice replacement over every occurrence span, returning the new source
and the number of substitutions.