Skip to main content

check_option_map

Function check_option_map 

Source
pub fn check_option_map(
    cx: &mut Cx,
    expr: &Expr,
    fields: Vec<OptionFieldSpec>,
    extra: TableExtraPolicy,
) -> Result<ShapeMatch>
Expand description

Check an option-map expression against field specs and an extra-key policy.

This is intentionally a thin wrapper around TableShape: it gives option parsers a domain-named entry point while preserving the same match scoring, captures, and diagnostics as the table grammar.