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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)