#[non_exhaustive]pub enum Diagnostic {
Fatal(FatalDiagnostic),
Warning(WarningDiagnostic),
Runtime(RuntimeDiagnostic),
}Expand description
A single diagnostic.
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.
Fatal(FatalDiagnostic)
A fatal diagnostic.
Warning(WarningDiagnostic)
A warning diagnostic.
Runtime(RuntimeDiagnostic)
A runtime diagnostic.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Diagnostic
impl !UnwindSafe for Diagnostic
impl Forget for Diagnostic
impl Freeze for Diagnosticwhere
*const FatalDiagnosticKind is !null: Freeze,
PhantomData<FatalDiagnosticKind>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnosticwhere
*const FatalDiagnosticKind is !null: UnsafeUnpin,
PhantomData<FatalDiagnosticKind>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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