replace

Function replace 

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