Skip to main content

format

Function format 

Source
pub fn format(template: &str, args: &[(&str, &dyn Display)]) -> String
Expand description

Fills the placeholders of a translated text, as Slint’s @tr does: {} takes the next argument, {0} the first, {name} the one with that name; {{ and }} are braces. A placeholder without its argument stays as it is.