pub enum ExpnFormat {
MacroAttribute(Symbol),
MacroBang(Symbol),
CompilerDesugaring(Symbol),
}
Expand description
The source of expansion.
Variants§
MacroAttribute(Symbol)
e.g. #[derive(…)]
MacroBang(Symbol)
e.g. format!()
CompilerDesugaring(Symbol)
Desugaring done by the compiler during HIR lowering.
Trait Implementations§
Source§impl Clone for ExpnFormat
impl Clone for ExpnFormat
Source§fn clone(&self) -> ExpnFormat
fn clone(&self) -> ExpnFormat
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 ExpnFormat
impl Debug for ExpnFormat
Source§impl Hash for ExpnFormat
impl Hash for ExpnFormat
Source§impl PartialEq for ExpnFormat
impl PartialEq for ExpnFormat
impl Eq for ExpnFormat
impl StructuralPartialEq for ExpnFormat
Auto Trait Implementations§
impl Freeze for ExpnFormat
impl RefUnwindSafe for ExpnFormat
impl Send for ExpnFormat
impl Sync for ExpnFormat
impl Unpin for ExpnFormat
impl UnwindSafe for ExpnFormat
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