Skip to main content

replace_occurrences

Function replace_occurrences 

Source
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.