Function replace_consts

Source
pub fn replace_consts<'a, S: BuildHasher>(
    format: &'a str,
    consts: &HashMap<String, Value, S>,
) -> Cow<'a, str>
Expand description

Replaces references to constants (of the form %{const_name}) with their respective constants.