Enum proc_macro2::TokenTree
[−]
[src]
pub enum TokenTree { Group(Group), Term(Term), Op(Op), Literal(Literal), }
Variants
Group(Group)
Term(Term)
Op(Op)
Literal(Literal)
Methods
impl TokenTree
[src]
Trait Implementations
impl FromIterator<TokenTree> for TokenStream
[src]
fn from_iter<I: IntoIterator<Item = TokenTree>>(streams: I) -> Self
[src]
Creates a value from an iterator. Read more
impl Clone for TokenTree
[src]
fn clone(&self) -> TokenTree
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Group> for TokenTree
[src]
impl From<Term> for TokenTree
[src]
impl From<Op> for TokenTree
[src]
impl From<Literal> for TokenTree
[src]
impl Display for TokenTree
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more