pub enum DiagnosticLevel {
Info,
Warning,
Error,
Fatal,
}Expand description
The severity level of a diagnostic.
Variants§
Info
Informational diagnostic.
Warning
Warning diagnostic.
Error
Error diagnostic.
Fatal
Fatal diagnostic.
Implementations§
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 (const: unstable) · 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 Display for DiagnosticLevel
impl Display for DiagnosticLevel
Source§impl FromStr for DiagnosticLevel
impl FromStr for DiagnosticLevel
Source§type Err = DiagnosticLevelParseError
type Err = DiagnosticLevelParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<DiagnosticLevel, <DiagnosticLevel as FromStr>::Err>
fn from_str( value: &str, ) -> Result<DiagnosticLevel, <DiagnosticLevel as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DiagnosticLevel
impl Hash for DiagnosticLevel
Source§impl Ord for DiagnosticLevel
impl Ord for DiagnosticLevel
Source§fn cmp(&self, other: &DiagnosticLevel) -> Ordering
fn cmp(&self, other: &DiagnosticLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DiagnosticLevel
impl PartialEq for DiagnosticLevel
Source§fn eq(&self, other: &DiagnosticLevel) -> bool
fn eq(&self, other: &DiagnosticLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DiagnosticLevel
impl PartialOrd for DiagnosticLevel
impl Copy for DiagnosticLevel
impl Eq 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 UnsafeUnpin 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