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

pub enum Nonterminal {
    NtItem(P<Item>),
    NtBlock(P<Block>),
    NtStmt(Stmt),
    NtPat(P<Pat>),
    NtExpr(P<Expr>),
    NtTy(P<Ty>),
    NtIdent(Identbool),
    NtLifetime(Ident),
    NtLiteral(P<Expr>),
    NtMeta(MetaItem),
    NtPath(Path),
    NtVis(Visibility),
    NtTT(TokenTree),
    NtTraitItem(TraitItem),
    NtImplItem(ImplItem),
    NtForeignItem(ForeignItem),
}

For interpolation during macro expansion.

Variants

NtItem(P<Item>)NtBlock(P<Block>)NtStmt(Stmt)NtPat(P<Pat>)NtExpr(P<Expr>)NtTy(P<Ty>)NtIdent(Identbool)NtLifetime(Ident)NtLiteral(P<Expr>)NtMeta(MetaItem)

Stuff inside brackets for attributes

NtPath(Path)NtVis(Visibility)NtTT(TokenTree)NtTraitItem(TraitItem)NtImplItem(ImplItem)NtForeignItem(ForeignItem)

Methods

impl Nonterminal[src]

pub fn to_tokenstream(&self, sess: &ParseSess, span: Span) -> TokenStream[src]

Trait Implementations

impl Clone for Nonterminal[src]

impl PartialEq<Nonterminal> for Nonterminal[src]

impl Debug for Nonterminal[src]

impl Encodable for Nonterminal[src]

impl Decodable for Nonterminal[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<E> SpecializationError for E[src]