MetaVarKind in rustc_ast::token - Rust (original) (raw)
pub enum MetaVarKind {
Show 13 variants Item,
Block,
Stmt,
Pat(NtPatKind),
Expr {
kind: NtExprKind,
can_begin_literal_maybe_minus: bool,
can_begin_string_literal: bool,
},
Ty {
is_path: bool,
},
Ident,
Lifetime,
Literal,
Meta {
has_meta_form: bool,
},
Path,
Vis,
TT,
}
Expand description
Annoyingly similar to NonterminalKind
, but the slight differences are important.
Fields
Fields
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 3 bytes
Size for each variant:
Item
: 0 bytesBlock
: 0 bytesStmt
: 0 bytesPat
: 2 bytesExpr
: 3 bytesTy
: 2 bytesIdent
: 0 bytesLifetime
: 0 bytesLiteral
: 0 bytesMeta
: 2 bytesPath
: 0 bytesVis
: 0 bytesTT
: 0 bytes