Struct syn::ItemMacro2[][src]

pub struct ItemMacro2 {
    pub attrs: Vec<Attribute>,
    pub vis: Visibility,
    pub macro_token: Macro,
    pub ident: Ident,
    pub paren_token: Paren,
    pub args: TokenStream,
    pub brace_token: Brace,
    pub body: TokenStream,

A 2.0-style declarative macro introduced by the macro keyword.

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


Trait Implementations

impl Synom for ItemMacro2

A short name of the type being parsed. Read more

impl ToTokens for ItemMacro2

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for ItemMacro2

Formats the value using the given formatter. Read more

impl Clone for ItemMacro2

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ItemMacro2> for Item

Performs the conversion.

impl Eq for ItemMacro2

impl PartialEq for ItemMacro2

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

This method tests for !=.

impl Hash for ItemMacro2

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

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

Auto Trait Implementations

impl !Send for ItemMacro2

impl !Sync for ItemMacro2