pub struct MacroExpansion {
pub macro_name: String,
pub expansion_site: ErrorLocation,
pub generated_code_snippet: String,
}Expand description
A step in a macro expansion trace
Fields§
§macro_name: StringName of the macro that was expanded
expansion_site: ErrorLocationLocation where the macro was expanded
generated_code_snippet: StringCode snippet generated by the macro expansion
Trait Implementations§
Source§impl Clone for MacroExpansion
impl Clone for MacroExpansion
Source§fn clone(&self) -> MacroExpansion
fn clone(&self) -> MacroExpansion
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 MacroExpansion
impl Debug for MacroExpansion
Source§impl PartialEq for MacroExpansion
impl PartialEq for MacroExpansion
impl Eq for MacroExpansion
impl StructuralPartialEq for MacroExpansion
Auto Trait Implementations§
impl Freeze for MacroExpansion
impl RefUnwindSafe for MacroExpansion
impl Send for MacroExpansion
impl Sync for MacroExpansion
impl Unpin for MacroExpansion
impl UnwindSafe for MacroExpansion
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