Skip to main content

mismatched

Function mismatched 

Source
pub fn mismatched(
    form: &Form,
    labels: &BTreeMap<String, String>,
    values: &FormValues,
    label_of: impl Fn(Source, &str) -> Option<String>,
) -> Vec<FieldError>
Expand description

A field error at every select control whose typed text is not the current label of the entity its value names: the text was retyped where no pick could see it. label_of gives that label, and None for a value naming no known entity, which resolution judges instead.