Skip to main content

format

Function format 

Source
pub fn format(
    pieces: &[Piece],
    language: &str,
    arg: &dyn Fn(&str) -> Option<Arg>,
    name: &dyn Fn(&str) -> String,
) -> String
Expand description

Write a text in language with its arguments. name(key) gives the framework texts for month and weekday names.