Struct syn::ItemMacro2 [−][src]
pub struct ItemMacro2 { pub attrs: Vec<Attribute>, pub vis: Visibility, pub macro_token: Macro, pub ident: Ident, pub rules: TokenStream, }
A 2.0-style declarative macro introduced by the macro
keyword.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
vis: Visibility
macro_token: Macro
ident: Ident
rules: TokenStream
Trait Implementations
impl Clone for ItemMacro2
[src]
impl Clone for ItemMacro2
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ItemMacro2> for Item
[src]
impl From<ItemMacro2> for Item
[src]fn from(e: ItemMacro2) -> Item
[src]
impl Hash for ItemMacro2
[src]
impl Hash for ItemMacro2
[src]impl Parse for ItemMacro2
[src]
impl Parse for ItemMacro2
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ItemMacro2> for ItemMacro2
[src]
impl PartialEq<ItemMacro2> for ItemMacro2
[src]impl ToTokens for ItemMacro2
[src]
impl ToTokens for ItemMacro2
[src]