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.
Fields§
§attrs: Vec<Attribute>
§mac: Macro
§semi_token: Option<Semi>
Trait Implementations§
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.