Struct syn::TraitItemMacro
source · pub struct TraitItemMacro {
pub attrs: Vec<Attribute>,
pub mac: Macro,
pub semi_token: Option<Semi>,
}
Expand description
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§
source§impl Clone for TraitItemMacro
impl Clone for TraitItemMacro
source§impl Debug for TraitItemMacro
impl Debug for TraitItemMacro
source§impl From<TraitItemMacro> for TraitItem
impl From<TraitItemMacro> for TraitItem
source§fn from(e: TraitItemMacro) -> TraitItem
fn from(e: TraitItemMacro) -> TraitItem
Converts to this type from the input type.