#[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
source§impl PartialEq<DiagnosticLevel> for DiagnosticLevel
impl PartialEq<DiagnosticLevel> for DiagnosticLevel
source§fn eq(&self, other: &DiagnosticLevel) -> bool
fn eq(&self, other: &DiagnosticLevel) -> bool
impl Copy for DiagnosticLevel
impl StructuralPartialEq for DiagnosticLevel
Auto Trait Implementations§
impl RefUnwindSafe for DiagnosticLevel
impl Send for DiagnosticLevel
impl Sync for DiagnosticLevel
impl Unpin for DiagnosticLevel
impl UnwindSafe for DiagnosticLevel
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.