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

Trait Implementations

impl ToTokens for Mac
[src]

Write self to the given Tokens. Read more

impl Debug for Mac
[src]

Formats the value using the given formatter.

impl Clone for Mac
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Mac
[src]

impl PartialEq for Mac
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Mac
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.