pub enum Severity {
Error,
Warning,
Note,
}Expand description
How seriously a diagnostic should be taken.
The three are ordered by what they ask of a reader. An error is a program
the toolchain refuses. A warning is a program it accepts and doubts, so
cove check --deny-warnings refuses it instead. A note is a program it
accepts and does not doubt: the compiler is saying what it deliberately
did not prove, which is a fact about the language rather than a suspicion
about this program, so no strictness setting turns one into a failure.
Variants§
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