is_lit_name_ref

Function is_lit_name_ref 

Source
fn is_lit_name_ref(name_ref: &NameRef) -> bool
Expand description

Checks if a name reference is used in a literal (constructor) context. Used to filter references when searching for struct/variant constructors.

ยงReturns

true if the name reference is used as part of a struct/variant literal expression.