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§

source

fn help(&self) -> Option<Box<dyn Display>>

Returns an optional help message that should indicate what users need to do to resolve an issue.

source

fn severity(&self) -> Severity

Returns the severity of this issue.

The default implementation returns Severity::default.

Implementors§