Function rustc::middle::pat_util::pat_contains_bindingsUnstable [-] [+] [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(..).