Struct syn::ItemMacro[][src]

pub struct ItemMacro {
    pub attrs: Vec<Attribute>,
    pub ident: Option<Ident>,
    pub mac: Macro,
    pub semi_token: Option<Semi>,
}

A macro invocation, which includes macro_rules! definitions.

This type is available if Syn is built with the "full" feature.

Fields

The example in macro_rules! example { ... }.

Trait Implementations

impl Parse for ItemMacro
[src]

impl ToTokens for ItemMacro
[src]

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for ItemMacro
[src]

Formats the value using the given formatter. Read more

impl Eq for ItemMacro
[src]

impl PartialEq for ItemMacro
[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 ItemMacro
[src]

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

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

impl Clone for ItemMacro
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ItemMacro> for Item
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for ItemMacro

impl !Sync for ItemMacro