pub enum DiagLevel {
Bug(&'static Location<'static>),
Error,
Warning,
}
Expand description
The “severity” level of a Diag
nostic.
Note: Bug
diagnostics track their emission point for easier identification.
Variants§
Trait Implementations§
source§impl PartialEq<DiagLevel> for DiagLevel
impl PartialEq<DiagLevel> for DiagLevel
impl Copy for DiagLevel
impl Eq for DiagLevel
impl StructuralEq for DiagLevel
impl StructuralPartialEq for DiagLevel
Auto Trait Implementations§
impl RefUnwindSafe for DiagLevel
impl Send for DiagLevel
impl Sync for DiagLevel
impl Unpin for DiagLevel
impl UnwindSafe for DiagLevel
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.