Trait mun_diagnostics::Diagnostic
source · pub trait Diagnostic {
fn title(&self) -> String;
fn range(&self) -> TextRange;
fn primary_annotation(&self) -> Option<SourceAnnotation>;
fn secondary_annotations(&self) -> Vec<SecondaryAnnotation> { ... }
fn footer(&self) -> Vec<String> { ... }
}
Expand description
The base trait for all diagnostics in this crate.
Required Methods§
sourcefn primary_annotation(&self) -> Option<SourceAnnotation>
fn primary_annotation(&self) -> Option<SourceAnnotation>
Returns a source annotation that acts as the primary annotation for this Diagnostic.
Provided Methods§
sourcefn secondary_annotations(&self) -> Vec<SecondaryAnnotation>
fn secondary_annotations(&self) -> Vec<SecondaryAnnotation>
Returns secondary source annotation that are shown as additional references.
Optional footer text