Struct rustc_ap_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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V