#[non_exhaustive]
pub enum DiagnosticLevel {
Ice,
Error,
Warning,
FailureNote,
Note,
Help,
}
Expand description
The diagnostic level
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ice
Internal compiler error
Error
Error
Warning
Warning
FailureNote
Failure note
Note
Note
Help
Help
Trait Implementations§
source§impl Clone for DiagnosticLevel
impl Clone for DiagnosticLevel
source§fn clone(&self) -> DiagnosticLevel
fn clone(&self) -> DiagnosticLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DiagnosticLevel
impl Debug for DiagnosticLevel
source§impl<'de> Deserialize<'de> for DiagnosticLevel
impl<'de> Deserialize<'de> for DiagnosticLevel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for DiagnosticLevel
impl Hash for DiagnosticLevel
source§impl PartialEq<DiagnosticLevel> for DiagnosticLevel
impl PartialEq<DiagnosticLevel> for DiagnosticLevel
source§fn eq(&self, other: &DiagnosticLevel) -> bool
fn eq(&self, other: &DiagnosticLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.