Skip to main content

positional

Function positional 

Source
pub fn positional(
    text: &str,
    params: &[String],
    specifier: impl Fn(usize) -> String,
) -> String
Expand description

Convert Bern placeholders to positional format specifiers made by specifier from the 1-based position, escaping % as %%. Texts without parameters are not formatted, so only their braces are unescaped.