pub enum Severity {
Advice,
Warning,
Error,
}
Expand description
Diagnostic
severity. Intended to be used by
ReportHandler
s to change the way different
Diagnostic
s are displayed. Defaults to Severity::Error
.
Variants§
Advice
Just some help. Here’s how you could be doing it better.
Warning
Warning. Please take note.
Error
Critical failure. The program cannot continue. This is the default severity, if you don’t specify another one.
Trait Implementations§
Source§impl Ord for Severity
impl Ord for Severity
Source§impl PartialOrd for Severity
impl PartialOrd for Severity
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more