Enum calypso_diagnostic::diagnostic::Severity
source · pub enum Severity {
Bug,
Error,
Warning,
Note,
Help,
}
Expand description
A severity level for diagnostic messages.
These are ordered in the following way:
use codespan_reporting::diagnostic::Severity;
assert!(Severity::Bug > Severity::Error);
assert!(Severity::Error > Severity::Warning);
assert!(Severity::Warning > Severity::Note);
assert!(Severity::Note > Severity::Help);
Variants§
Trait Implementations§
source§impl PartialEq<Severity> for Severity
impl PartialEq<Severity> for Severity
source§impl PartialOrd<Severity> for Severity
impl PartialOrd<Severity> for Severity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more