#[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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for DiagnosticLevel
impl PartialEq for DiagnosticLevel
impl Copy for DiagnosticLevel
impl StructuralPartialEq for DiagnosticLevel
Auto Trait Implementations§
impl Freeze for DiagnosticLevel
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> 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more