Skip to main content

label

Function label 

Source
pub fn label(
    enum_name: &str,
    variant: &str,
    tr: &Tr,
    fields: &[FieldDef],
) -> Result<LocalizedText>
Expand description

A variant’s label. Its placeholders are the variant’s fields, shown as the label’s text says: text that is data (#[content]), numbers, enums by their labels, dates with {field, date, …}.