Skip to main content

canonical_args

Function canonical_args 

Source
fn canonical_args<'hir>(
    kind: CallArgsKind<'hir>,
    aliases: &[&[&str]],
) -> Option<Vec<&'hir Expr<'hir>>>
Expand description

Resolves positional or named call args to a fixed positional ordering. aliases[i] holds the parameter names accepted for slot i in the named form. Returns None if arity differs or any slot is unmatched.