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: Levelmessage: Vec<(String, Style)>span: MultiSpanrender_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 SubDiagnosticimpl !Send for SubDiagnosticimpl !Sync for SubDiagnosticimpl Unpin for SubDiagnosticimpl UnwindSafe for SubDiagnosticBlanket 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 = TShould always be Self
pub fn vzip(self) -> V