Module rustc::middle::pat_utilUnstable [-] [+] [src]

Functions

def_to_path
pat_bindings

Call it on every "binding" in a pattern, e.g., on a in match foo() { Some(a) => (), None => () }

pat_contains_bindings

Checks if the pattern contains any patterns that bind something to an ident, e.g. foo, or Foo(foo) or foo @ Bar(..).

pat_id_map
pat_is_binding
pat_is_binding_or_wild
pat_is_const
pat_is_refutable
pat_is_variant_or_struct
simple_identifier

Type Definitions

PatIdMap