pub struct MacroUse {
pub name: String,
pub at: Span,
pub file: u32,
}Expand description
One place a macro was used.
Recorded per expanded token so a diagnostic inside an expansion can name the macro as well as the text.
Fields§
§name: StringWhich macro.
at: SpanWhere it was written.
file: u32Which file that was, as a raw id.
Trait Implementations§
impl Eq for MacroUse
impl StructuralPartialEq for MacroUse
Auto Trait Implementations§
impl Freeze for MacroUse
impl RefUnwindSafe for MacroUse
impl Send for MacroUse
impl Sync for MacroUse
impl Unpin for MacroUse
impl UnsafeUnpin for MacroUse
impl UnwindSafe for MacroUse
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