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 if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
mac: Macro
semi_token: Option<Semi>
Trait Implementations
sourceimpl Clone for ImplItemMacro
impl Clone for ImplItemMacro
sourcefn clone(&self) -> ImplItemMacro
fn clone(&self) -> ImplItemMacro
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImplItemMacro
impl Debug for ImplItemMacro
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 Hash for ImplItemMacro
impl Hash for ImplItemMacro
sourceimpl Parse for ImplItemMacro
impl Parse for ImplItemMacro
fn parse(input: ParseStream<'_>) -> Result<Self>
sourceimpl PartialEq<ImplItemMacro> for ImplItemMacro
impl PartialEq<ImplItemMacro> for ImplItemMacro
sourcefn eq(&self, other: &ImplItemMacro) -> bool
fn eq(&self, other: &ImplItemMacro) -> bool
sourceimpl ToTokens for ImplItemMacro
impl ToTokens for ImplItemMacro
sourcefn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
sourcefn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for ImplItemMacro
impl StructuralEq for ImplItemMacro
impl StructuralPartialEq for ImplItemMacro
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Spanned for Twhere
T: ToTokens,
impl<T> Spanned for Twhere
T: ToTokens,
sourcefn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more