pub enum ProcMacroKind {
FunctionLike,
Derive,
Attribute,
}Expand description
Procedural macro kind
Variants§
FunctionLike
#[proc_macro] — function-like macro: my_macro!(...)
Derive
#[proc_macro_derive(Name)] — derive macro: #[derive(Name)]
Attribute
#[proc_macro_attribute] — attribute macro: #[my_attr] fn ...
Trait Implementations§
Source§impl Clone for ProcMacroKind
impl Clone for ProcMacroKind
Source§fn clone(&self) -> ProcMacroKind
fn clone(&self) -> ProcMacroKind
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 ProcMacroKind
impl Debug for ProcMacroKind
Source§impl PartialEq for ProcMacroKind
impl PartialEq for ProcMacroKind
impl Copy for ProcMacroKind
impl Eq for ProcMacroKind
impl StructuralPartialEq for ProcMacroKind
Auto Trait Implementations§
impl Freeze for ProcMacroKind
impl RefUnwindSafe for ProcMacroKind
impl Send for ProcMacroKind
impl Sync for ProcMacroKind
impl Unpin for ProcMacroKind
impl UnwindSafe for ProcMacroKind
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.