Enum syntex_syntax::parse::token::Nonterminal [] [src]

pub enum Nonterminal {
    NtItem(P<Item>),
    NtBlock(P<Block>),
    NtStmt(P<Stmt>),
    NtPat(P<Pat>),
    NtExpr(P<Expr>),
    NtTy(P<Ty>),
    NtIdent(Box<Ident>, IdentStyle),
    NtMeta(P<MetaItem>),
    NtPath(Box<Path>),
    NtTT(P<TokenTree>),
    NtArm(Arm),
    NtImplItem(P<ImplItem>),
    NtTraitItem(P<TraitItem>),
    NtGenerics(Generics),
    NtWhereClause(WhereClause),
    NtArg(Arg),
}

For interpolation during macro expansion.

Variants

NtItem
NtBlock
NtStmt
NtPat
NtExpr
NtTy
NtIdent
NtMeta

Stuff inside brackets for attributes

NtPath
NtTT
NtArm
NtImplItem
NtTraitItem
NtGenerics
NtWhereClause
NtArg

Trait Implementations

impl Debug for Nonterminal

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Hash for Nonterminal

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for Nonterminal

impl PartialEq for Nonterminal

fn eq(&self, __arg_0: &Nonterminal) -> bool

fn ne(&self, __arg_0: &Nonterminal) -> bool

impl Decodable for Nonterminal

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Nonterminal, __D::Error>

impl Encodable for Nonterminal

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Clone for Nonterminal

fn clone(&self) -> Nonterminal

fn clone_from(&mut self, source: &Self)