Struct swc_common::errors::SubDiagnostic [−][src]
pub struct SubDiagnostic {
pub level: Level,
pub message: Vec<(String, Style)>,
pub span: MultiSpan,
pub render_span: Option<MultiSpan>,
}
Expand description
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
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more