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.


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

Trait Implementations

impl Synom for ItemMacro

A short name of the type being parsed. Read more

impl ToTokens for ItemMacro

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for ItemMacro

Formats the value using the given formatter. Read more

impl Eq for ItemMacro

impl PartialEq for ItemMacro

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ItemMacro> for Item

Performs the conversion.

Auto Trait Implementations

impl !Send for ItemMacro

impl !Sync for ItemMacro