Struct rustc_errors::json::DiagnosticSpanMacroExpansion
source · struct DiagnosticSpanMacroExpansion {
span: DiagnosticSpan,
macro_decl_name: String,
def_site_span: DiagnosticSpan,
}
Fields
span: DiagnosticSpan
span where macro was applied to generate this code; note that
this may itself derive from a macro (if
span.expansion.is_some()
)
macro_decl_name: String
name of macro that was applied (e.g., “foo!” or “#[derive(Eq)]”)
def_site_span: DiagnosticSpan
span where macro was defined (if known)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DiagnosticSpanMacroExpansion
impl Send for DiagnosticSpanMacroExpansion
impl Sync for DiagnosticSpanMacroExpansion
impl Unpin for DiagnosticSpanMacroExpansion
impl UnwindSafe for DiagnosticSpanMacroExpansion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 328 bytes