Skip to main content

choices

Function choices 

Source
pub fn choices<T: PartialEq>(
    options: &[(T, &str, &str)],
    chosen: &T,
) -> (String, Vec<Choice>)
Expand description

A select field’s table of options, each (option, value, label): the value it gives chosen, and the choices it offers.