Function lazybar_core::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.