Function replace_with

Source
pub fn replace_with<H, P, F, W>(src: H, from: P, replacer: F, writer: W)
where H: Haystack, P: Needle<H>, F: FnMut(H) -> H, W: FnMut(H), H::Target: Hay,