Struct syn::TraitItemMacro [−][src]
pub struct TraitItemMacro { pub attrs: Vec<Attribute>, pub mac: Macro, pub semi_token: Option<Semi>, }
A macro invocation within the definition of a trait.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
mac: Macro
semi_token: Option<Semi>
Trait Implementations
impl Clone for TraitItemMacro
[src]
impl Clone for TraitItemMacro
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<TraitItemMacro> for TraitItem
[src]
impl From<TraitItemMacro> for TraitItem
[src]fn from(e: TraitItemMacro) -> TraitItem
[src]
impl Hash for TraitItemMacro
[src]
impl Hash for TraitItemMacro
[src]impl Parse for TraitItemMacro
[src]
impl Parse for TraitItemMacro
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<TraitItemMacro> for TraitItemMacro
[src]
impl PartialEq<TraitItemMacro> for TraitItemMacro
[src]impl ToTokens for TraitItemMacro
[src]
impl ToTokens for TraitItemMacro
[src]