Function syntax::ast_util::pat_is_ident
pub fn pat_is_ident(pat: @Pat) -> bool
Returns true if the given pattern consists solely of an identifier and false otherwise.
pub fn pat_is_ident(pat: @Pat) -> bool
Returns true if the given pattern consists solely of an identifier and false otherwise.
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
).