pub fn replace_all_fallible<E>( re: &Regex, haystack: &str, replacement: impl Fn(&Captures<'_>) -> Result<String, E>, ) -> Result<String, E>