Function rvar::replace

source ยท
pub fn replace<S: AsRef<str>>(
    s: S,
    li: &[Range<usize>],
    get: impl FnMut(&str) -> String,
) -> String