Enum rustc_ast::token::Nonterminal [−][src]
pub enum Nonterminal {
}
Expand description
For interpolation during macro expansion.
Variants
NtStmt(Stmt)
Tuple Fields of NtStmt
0: Stmt
NtLifetime(Ident)
Tuple Fields of NtLifetime
0: Ident
Stuff inside brackets for attributes
NtPath(Path)
Tuple Fields of NtPath
0: Path
NtVis(Visibility)
Tuple Fields of NtVis
0: Visibility
NtTT(TokenTree)
Tuple Fields of NtTT
0: TokenTree
Implementations
Trait Implementations
This is true
if this AstLike
might support ‘custom’ (proc-macro) inner
attributes. Attributes like #![cfg]
and #![cfg_attr]
are not
considered ‘custom’ attributes Read more
Auto Trait Implementations
impl !RefUnwindSafe for Nonterminal
impl !Send for Nonterminal
impl !Sync for Nonterminal
impl Unpin for Nonterminal
impl !UnwindSafe for Nonterminal
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
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: 48 bytes
Size for each variant:
NtItem
: 15 bytesNtBlock
: 15 bytesNtStmt
: 39 bytesNtPat
: 15 bytesNtExpr
: 15 bytesNtTy
: 15 bytesNtIdent
: 15 bytesNtLifetime
: 15 bytesNtLiteral
: 15 bytesNtMeta
: 15 bytesNtPath
: 47 bytesNtVis
: 39 bytesNtTT
: 39 bytes