pub enum Severity {
Error,
Warning,
Info,
Hint,
}Expand description
The single diagnostic severity scale, aligned 1:1 with the LSP severities
(spec/error-handling.md). This is the canonical set for every diagnostic-
producing surface (check, lint, LSP, test). note is NOT a severity — it is
related information attached to a diagnostic. Inbox-item / notification
“severity” is a distinct concept and is not this type.
Variants§
Implementations§
Trait Implementations§
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 UnsafeUnpin 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