pub fn pat_is_ident(pat: P<ast::Pat>) -> bool {
    match pat.node {
        ast::PatIdent(..) => true,
        _ => false,
    }
}
/// Returns true if the given pattern consists solely of an identifier
/// and false otherwise.
Returns true if the given pattern consists solely of an identifier
and false otherwise.
Returns true if the given pattern consists solely of an identifier and false otherwise .
pub fn pat_is_ident(pat: P<ast::Pat>) -> bool {
    match pat.node {
        ast::PatIdent(..) => true,
        _ => false,
    }
}
pub fn pat_is_ident ( pat : P < ast :: Pat > ) -> bool { match pat . node { ast :: PatIdent ( .. ) => true , _ => false , } }
Returns true if the given pattern consists solely of an identifier
and false otherwise.
Returns true if the given pattern consists solely of an identifier and false otherwise .
pat
P<ast::Pat>
pat
P<ast::Pat>