#[non_exhaustive]
pub enum DiagnosticLevel {
Error,
Warning,
}
Expand description
This enum describes the level or severity of a diagnostic message produced by the compiler.
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.
Error
The diagnostic found is an error that prevents successful compilation.
Warning
The diagnostic found is a warning.
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 Default for DiagnosticLevel
impl Default for DiagnosticLevel
source§fn default() -> DiagnosticLevel
fn default() -> DiagnosticLevel
Returns the “default value” for a type. Read more