pub enum MacroStyle {
Global,
Receiver,
}Expand description
Indicates whether a macro is called as a global function or as a method on a receiver.
Variants§
Global
Global function call: macro_name(args...)
Receiver
Receiver-style method call: receiver.macro_name(args...)
Trait Implementations§
Source§impl Clone for MacroStyle
impl Clone for MacroStyle
Source§fn clone(&self) -> MacroStyle
fn clone(&self) -> MacroStyle
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 MacroStyle
impl Debug for MacroStyle
Source§impl PartialEq for MacroStyle
impl PartialEq for MacroStyle
impl Copy for MacroStyle
impl Eq for MacroStyle
impl StructuralPartialEq for MacroStyle
Auto Trait Implementations§
impl Freeze for MacroStyle
impl RefUnwindSafe for MacroStyle
impl Send for MacroStyle
impl Sync for MacroStyle
impl Unpin for MacroStyle
impl UnsafeUnpin for MacroStyle
impl UnwindSafe for MacroStyle
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