pub(crate) fn transform<F, G>( s: &str, with_word: F, boundary: G, f: &mut Formatter<'_>, ) -> Resultwhere F: FnMut(&str, &mut Formatter<'_>) -> Result, G: FnMut(&mut Formatter<'_>) -> Result,