Enum macro_magic_core::ProcMacroType
source · pub enum ProcMacroType {
Normal,
Attribute,
Derive,
}
Expand description
Delineates the different types of proc macro
Variants§
Normal
Corresponds with #[proc_macro]
Attribute
Corresponds with #[proc_macro_attribute]
Derive
Corresponds with #[proc_macro_derive]
Implementations§
Trait Implementations§
source§impl Clone for ProcMacroType
impl Clone for ProcMacroType
source§fn clone(&self) -> ProcMacroType
fn clone(&self) -> ProcMacroType
Returns a copy of the value. Read more
1.0.0 · 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 ProcMacroType
impl Debug for ProcMacroType
source§impl PartialEq for ProcMacroType
impl PartialEq for ProcMacroType
source§fn eq(&self, other: &ProcMacroType) -> bool
fn eq(&self, other: &ProcMacroType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProcMacroType
impl Eq for ProcMacroType
impl StructuralPartialEq for ProcMacroType
Auto Trait Implementations§
impl Freeze for ProcMacroType
impl RefUnwindSafe for ProcMacroType
impl Send for ProcMacroType
impl Sync for ProcMacroType
impl Unpin for ProcMacroType
impl UnwindSafe for ProcMacroType
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)