#[non_exhaustive]pub enum FatalDiagnosticKind {
CompileError(Error),
LinkError(LinkerError),
Internal(&'static str),
}
Expand description
The kind of a FatalDiagnostic.
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 Debug for FatalDiagnosticKind
impl Debug for FatalDiagnosticKind
Source§impl Display for FatalDiagnosticKind
impl Display for FatalDiagnosticKind
Source§impl From<Error> for FatalDiagnosticKind
impl From<Error> for FatalDiagnosticKind
Source§impl From<LinkerError> for FatalDiagnosticKind
impl From<LinkerError> for FatalDiagnosticKind
Source§fn from(error: LinkerError) -> Self
fn from(error: LinkerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FatalDiagnosticKind
impl !RefUnwindSafe for FatalDiagnosticKind
impl Send for FatalDiagnosticKind
impl Sync for FatalDiagnosticKind
impl Unpin for FatalDiagnosticKind
impl !UnwindSafe for FatalDiagnosticKind
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