[−][src]Function markedit::change_text
pub fn change_text<'src, M, F, S>(
predicate: M,
mutator: F
) -> impl Rewriter<'src> + 'src where
M: FnMut(&str) -> bool + 'src,
F: FnMut(CowStr<'src>) -> S + 'src,
S: Into<CowStr<'src>>,
A Rewriter
which lets you update a Event::Text
node based on some
predicate.