Trait diagnostics::Diagnostic
source · pub trait Diagnostic: Debug + Display {
// Provided methods
fn help(&self) -> Option<Box<dyn Display>> { ... }
fn severity(&self) -> Severity { ... }
}
Expand description
A diagnostic issue that should be reported to users.
Provided Methods§
sourcefn help(&self) -> Option<Box<dyn Display>>
fn help(&self) -> Option<Box<dyn Display>>
Returns an optional help message that should indicate what users need to do to resolve an issue.
sourcefn severity(&self) -> Severity
fn severity(&self) -> Severity
Returns the severity of this issue.
The default implementation returns Severity::default
.