pub fn pat_contains_bindings(pat: &hir::Pat) -> bool {
    let mut contains_bindings = false;
    pat.walk(|p| {
        if let PatKind::Binding(..) = p.node {
            contains_bindings = true;
            false // there's at least one binding, can short circuit now.
        } else {
            true
        }
    });
    contains_bindings
}
/// Checks if the pattern contains any patterns that bind something to
/// an ident, e.g. `foo`, or `Foo(foo)` or `foo @ Bar(..)`.
Checks if the pattern contains any patterns that bind something to
an ident, e.g.
Checks if the pattern contains any patterns that bind something to an ident e . g .
pub fn pat_contains_bindings(pat: &hir::Pat) -> bool {
    let mut contains_bindings = false;
    pat.walk(|p| {
        if let PatKind::Binding(..) = p.node {
            contains_bindings = true;
            false // there's at least one binding, can short circuit now.
        } else {
            true
        }
    });
    contains_bindings
}
pub fn pat_contains_bindings ( pat : & hir :: Pat ) -> bool { let mut contains_bindings = false ; pat . walk ( | p | { if let PatKind :: Binding ( .. ) = p . node { contains_bindings = true ; false // there's at least one binding, can short circuit now. } else { true } } ) ; contains_bindings }
Checks if the pattern contains any patterns that bind something to
an ident, e.g.
Checks if the pattern contains any patterns that bind something to an ident e . g .
pat
&hir::Pat
pat
&hir::Pat