Enum rustc_span::hygiene::MacroKind [−][src]
pub enum MacroKind {
Bang,
Attr,
Derive,
}Expand description
The kind of macro invocation or definition.
Variants
Expand description
A bang macro foo!().
Expand description
An attribute macro #[foo].
Expand description
A derive macro #[derive(Foo)]
Implementations
impl MacroKind[src]
impl MacroKind[src]Trait Implementations
impl<__CTX> HashStable<__CTX> for MacroKind where
__CTX: HashStableContext, [src]
impl<__CTX> HashStable<__CTX> for MacroKind where
__CTX: HashStableContext, [src]fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)[src]
impl Copy for MacroKind[src]
impl Eq for MacroKind[src]
impl StructuralEq for MacroKind[src]
impl StructuralPartialEq for MacroKind[src]
Auto Trait Implementations
impl RefUnwindSafe for MacroKind
impl Send for MacroKind
impl Sync for MacroKind
impl Unpin for MacroKind
impl UnwindSafe for MacroKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more