Skip to main content

format

Function format 

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

A template with {0}, {1}… replaced by these. A number with nothing for it stays as it was.