Skip to main content

expr_root_is_param

Function expr_root_is_param 

Source
fn expr_root_is_param(expr: &Expr<'_>, params: &[VariableId]) -> bool
Expand description

Returns true if the root of expr — after peeling parens / members / indexes / slices — is an Ident resolving to one of params.