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 duplicate 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
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