#[non_exhaustive]pub enum DiagnosticClass {
Compiler,
Test,
Lint,
Tool,
Infrastructure,
}Expand description
Provider-neutral diagnostic family used by presentation adapters.
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.
Trait Implementations§
Source§impl Clone for DiagnosticClass
impl Clone for DiagnosticClass
Source§fn clone(&self) -> DiagnosticClass
fn clone(&self) -> DiagnosticClass
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 moreimpl Copy for DiagnosticClass
Source§impl Debug for DiagnosticClass
impl Debug for DiagnosticClass
Source§impl<'de> Deserialize<'de> for DiagnosticClass
impl<'de> Deserialize<'de> for DiagnosticClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiagnosticClass
Source§impl Ord for DiagnosticClass
impl Ord for DiagnosticClass
Source§fn cmp(&self, other: &DiagnosticClass) -> Ordering
fn cmp(&self, other: &DiagnosticClass) -> 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 DiagnosticClass
impl PartialEq for DiagnosticClass
Source§impl PartialOrd for DiagnosticClass
impl PartialOrd for DiagnosticClass
Source§impl Serialize for DiagnosticClass
impl Serialize for DiagnosticClass
impl StructuralPartialEq for DiagnosticClass
Auto Trait Implementations§
impl Freeze for DiagnosticClass
impl RefUnwindSafe for DiagnosticClass
impl Send for DiagnosticClass
impl Sync for DiagnosticClass
impl Unpin for DiagnosticClass
impl UnsafeUnpin for DiagnosticClass
impl UnwindSafe for DiagnosticClass
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