pub fn replace<E>( s: &str, f: &dyn Fn(&str) -> Result<String, E>, ) -> Result<String, ConfError>where ConfError: From<E>,