Struct syn::ImplItemMacro
source · [−]pub struct ImplItemMacro {
pub attrs: Vec<Attribute>,
pub mac: Macro,
pub semi_token: Option<Semi>,
}
Expand description
A macro invocation within an impl block.
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
sourceimpl From<ImplItemMacro> for ImplItem
impl From<ImplItemMacro> for ImplItem
sourcefn from(e: ImplItemMacro) -> ImplItem
fn from(e: ImplItemMacro) -> ImplItem
Converts to this type from the input type.
sourceimpl Parse for ImplItemMacro
impl Parse for ImplItemMacro
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations
impl RefUnwindSafe for ImplItemMacro
impl !Send for ImplItemMacro
impl !Sync for ImplItemMacro
impl Unpin for ImplItemMacro
impl UnwindSafe for ImplItemMacro
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more