Struct syn::Mac
[−]
[src]
pub struct Mac {
pub path: Path,
pub tts: 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.
NB: the additional ident for a macro_rules-style macro is actually
stored in the enclosing item. Oog.
Fields
path: Path
tts: Vec<TokenTree>
Trait Implementations
impl ToTokens for Mac[src]
impl Debug for Mac[src]
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
impl Eq for Mac[src]
impl PartialEq for Mac[src]
fn eq(&self, __arg_0: &Mac) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Mac) -> bool
This method tests for !=.