NonterminalKind in rustc_ast::token - Rust (original) (raw)

Enum NonterminalKind

Source

pub enum NonterminalKind {
Show 13 variants    Item,
    Block,
    Stmt,
    Pat(NtPatKind),
    Expr(NtExprKind),
    Ty,
    Ident,
    Lifetime,
    Literal,
    Meta,
    Path,
    Vis,
    TT,
}

§

§

§

§

§

§

§

§

§

§

§

§

§

Source§

Source

The edition closure is used to get the edition for the given symbol. Doingspan.edition() is expensive, so we do it lazily.

Source

§

§

§

§

§

§

§

§

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: