Skip to main content

entry_label

Function entry_label 

Source
pub fn entry_label<S: AsRef<str>>(
    mode: EntryLabelMode,
    id: &str,
    names: &[String],
    forms: impl IntoIterator<Item = S>,
) -> String
Expand description

Produce a nonempty entry label without parsing names or implying aliases.

Callers supply validated names and visible form text. This does not perform terminal escaping: adapters sanitize the resulting label for their surface.