Struct rustc_errors::SubDiagnostic [−][src]
pub struct SubDiagnostic {
pub level: Level,
pub message: Vec<(String, Style)>,
pub span: MultiSpan,
pub render_span: Option<MultiSpan>,
}
Expand description
A “sub”-diagnostic attached to a parent diagnostic. For example, a note attached to an error.
Fields
level: Level
message: Vec<(String, Style)>
span: MultiSpan
render_span: Option<MultiSpan>
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SubDiagnostic
impl !Send for SubDiagnostic
impl !Sync for SubDiagnostic
impl Unpin for SubDiagnostic
impl UnwindSafe for SubDiagnostic
Blanket Implementations
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: 128 bytes