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]

[src]

Write self to the given Tokens. Read more

impl Debug for Mac
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Mac
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Mac
[src]

impl PartialEq for Mac
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for Mac
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more