Enum 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<SpannedIdent>),
NtMeta(P<MetaItem>),
NtPath(Box<Path>),
NtTT(P<TokenTree>),
NtArm(Arm),
NtImplItem(P<ImplItem>),
NtTraitItem(P<TraitItem>),
NtGenerics(Generics),
NtWhereClause(WhereClause),
NtArg(Arg),
}Unstable (
rustc_private)For interpolation during macro expansion.
Variants
NtItem(P<Item>)Unstable (
rustc_private)NtBlock(P<Block>)Unstable (
rustc_private)NtStmt(P<Stmt>)Unstable (
rustc_private)NtPat(P<Pat>)Unstable (
rustc_private)NtExpr(P<Expr>)Unstable (
rustc_private)NtTy(P<Ty>)Unstable (
rustc_private)NtIdent(Box<SpannedIdent>)Unstable (
rustc_private)NtMeta(P<MetaItem>)Unstable (
rustc_private)Stuff inside brackets for attributes
NtPath(Box<Path>)Unstable (
rustc_private)NtTT(P<TokenTree>)Unstable (
rustc_private)NtArm(Arm)Unstable (
rustc_private)NtImplItem(P<ImplItem>)Unstable (
rustc_private)NtTraitItem(P<TraitItem>)Unstable (
rustc_private)NtGenerics(Generics)Unstable (
rustc_private)NtWhereClause(WhereClause)Unstable (
rustc_private)NtArg(Arg)Unstable (
rustc_private)Trait Implementations
impl Debug for Nonterminal[src]
Derived Implementations
impl Hash for Nonterminal[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Eq for Nonterminal[src]
impl PartialEq for Nonterminal[src]
fn eq(&self, __arg_0: &Nonterminal) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Nonterminal) -> bool
This method tests for !=.
impl Decodable for Nonterminal[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Nonterminal, __D::Error>
impl Encodable for Nonterminal[src]
impl Clone for Nonterminal[src]
fn clone(&self) -> Nonterminal
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more