NonterminalKind in rustc_ast::token - Rust (original) (raw)
Enum NonterminalKind
pub enum NonterminalKind {
Show 13 variants Item,
Block,
Stmt,
Pat(NtPatKind),
Expr(NtExprKind),
Ty,
Ident,
Lifetime,
Literal,
Meta,
Path,
Vis,
TT,
}
The edition
closure is used to get the edition for the given symbol. Doingspan.edition()
is expensive, so we do it lazily.
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: 2 bytes
Size for each variant:
Item
: 0 bytesBlock
: 0 bytesStmt
: 0 bytesPat
: 1 byteExpr
: 1 byteTy
: 0 bytesIdent
: 0 bytesLifetime
: 0 bytesLiteral
: 0 bytesMeta
: 0 bytesPath
: 0 bytesVis
: 0 bytesTT
: 0 bytes