Enum proc_macro2::TokenTree [] [src]

pub enum TokenTree {
    Group(Group),
    Term(Term),
    Op(Op),
    Literal(Literal),
}

Variants

Methods

impl TokenTree
[src]

[src]

[src]

Trait Implementations

impl FromIterator<TokenTree> for TokenStream
[src]

[src]

Creates a value from an iterator. Read more

impl Clone for TokenTree
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Group> for TokenTree
[src]

[src]

Performs the conversion.

impl From<Term> for TokenTree
[src]

[src]

Performs the conversion.

impl From<Op> for TokenTree
[src]

[src]

Performs the conversion.

impl From<Literal> for TokenTree
[src]

[src]

Performs the conversion.

impl Display for TokenTree
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for TokenTree
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for TokenTree

impl !Sync for TokenTree