Skip to main content

substitute

Function substitute 

Source
pub fn substitute(
    text: &str,
    path: &str,
    file: &Path,
    lookup: &dyn Fn(&str) -> Option<String>,
) -> Result<String>
Expand description

Substitute in one string. path is the config key, for error messages.