#[non_exhaustive]pub enum CompileErrorKind {
Parse,
Cancelled,
Internal,
}Expand description
Stable category of a CompileError.
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.
Parse
The source did not parse (or used a rejected construct); location
carries the failing range when known.
Cancelled
Compilation was cancelled at a cooperative safepoint.
Internal
The compiler hit an internal limit or invariant.
Trait Implementations§
Source§impl Clone for CompileErrorKind
impl Clone for CompileErrorKind
impl Copy for CompileErrorKind
Source§impl Debug for CompileErrorKind
impl Debug for CompileErrorKind
impl Eq for CompileErrorKind
Source§impl PartialEq for CompileErrorKind
impl PartialEq for CompileErrorKind
impl StructuralPartialEq for CompileErrorKind
Auto Trait Implementations§
impl Freeze for CompileErrorKind
impl RefUnwindSafe for CompileErrorKind
impl Send for CompileErrorKind
impl Sync for CompileErrorKind
impl Unpin for CompileErrorKind
impl UnsafeUnpin for CompileErrorKind
impl UnwindSafe for CompileErrorKind
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