Enum proc_macro2::TokenTree
[−]
[src]
pub enum TokenTree {
Group(Group),
Ident(Ident),
Punct(Punct),
Literal(Literal),
}Variants
Group(Group)Ident(Ident)Punct(Punct)Literal(Literal)
Methods
impl TokenTree[src]
Trait Implementations
impl Extend<TokenTree> for TokenStream[src]
fn extend<I: IntoIterator<Item = TokenTree>>(&mut self, streams: I)[src]
Extends a collection with the contents of an iterator. Read more
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<Ident> for TokenTree[src]
impl From<Punct> 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