Struct unrest_tmp_syn::Mac
[−]
[src]
pub struct Mac { pub path: Path, pub bang_token: Bang, pub ident: Option<Ident>, pub tokens: Vec<TokenTree>, }
Represents a macro invocation. The Path indicates which macro is being invoked, and the vector of token-trees contains the source of the macro invocation.
Fields
path: Path
bang_token: Bang
ident: Option<Ident>
The example
in macro_rules! example { ... }
.
tokens: Vec<TokenTree>
Methods
impl Mac
[src]
Trait Implementations
impl Synom for Mac
[src]
impl ToTokens for Mac
[src]
fn to_tokens(&self, tokens: &mut Tokens)
Write self
to the given Tokens
. Read more
fn into_tokens(self) -> Tokens
Convert self
directly into a Tokens
object. Read more
impl Clone for Mac
[src]
fn clone(&self) -> Mac
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