pub enum MacroExpansionKind {
Bang,
Attribute,
Derive,
}Expand description
The kind of macro invocation.
Variants§
Bang
Function-like macro: name!(...) / name![...] / name!{...}
Attribute
Attribute macro: #[name] or #[name(...)]
Derive
Derive macro: #[derive(Name)]
Trait Implementations§
Source§impl Clone for MacroExpansionKind
impl Clone for MacroExpansionKind
Source§fn clone(&self) -> MacroExpansionKind
fn clone(&self) -> MacroExpansionKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MacroExpansionKind
impl Debug for MacroExpansionKind
Source§impl PartialEq for MacroExpansionKind
impl PartialEq for MacroExpansionKind
Source§fn eq(&self, other: &MacroExpansionKind) -> bool
fn eq(&self, other: &MacroExpansionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MacroExpansionKind
impl StructuralPartialEq for MacroExpansionKind
Auto Trait Implementations§
impl Freeze for MacroExpansionKind
impl RefUnwindSafe for MacroExpansionKind
impl Send for MacroExpansionKind
impl Sync for MacroExpansionKind
impl Unpin for MacroExpansionKind
impl UnsafeUnpin for MacroExpansionKind
impl UnwindSafe for MacroExpansionKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more