Function rustc::middle::pat_util::pat_contains_bindings[src]
pub fn pat_contains_bindings(dm: &DefMap, pat: &Pat) -> bool
Checks if the pattern contains any patterns that bind something to
an ident, e.g. foo, or Foo(foo) or foo @ Bar(..).
pub fn pat_contains_bindings(dm: &DefMap, pat: &Pat) -> bool
Checks if the pattern contains any patterns that bind something to
an ident, e.g. foo, or Foo(foo) or foo @ Bar(..).
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).