Skip to main content

format

Function format 

Source
pub fn format(
    cx: &dyn Context,
    template: &str,
    args: &[Value],
) -> RunResult<String>
Expand description

Replaces each {} in template by the next argument, displayed; {{ and }} write literal braces. {:x} and {:X} format integers as lowercase or uppercase hexadecimal.