#[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ยง
ยงimpl Clone for DiagnosticLevel
impl Clone for DiagnosticLevel
ยง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 moreยงimpl Debug for DiagnosticLevel
impl Debug for DiagnosticLevel
ยงimpl Default for DiagnosticLevel
impl Default for DiagnosticLevel
ยงfn default() -> DiagnosticLevel
fn default() -> DiagnosticLevel
Returns the โdefault valueโ for a type. Read more
ยงimpl PartialEq<DiagnosticLevel> for DiagnosticLevel
impl PartialEq<DiagnosticLevel> for DiagnosticLevel
ยง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.
ยงimpl<T> Pointable for T
impl<T> Pointable for T
sourceยงimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourceยงfn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.