#[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
Source§fn clone(&self) -> CompileErrorKind
fn clone(&self) -> CompileErrorKind
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 CompileErrorKind
Source§impl Debug for CompileErrorKind
impl Debug for CompileErrorKind
impl Eq for CompileErrorKind
Source§impl PartialEq for CompileErrorKind
impl PartialEq for CompileErrorKind
Source§fn eq(&self, other: &CompileErrorKind) -> bool
fn eq(&self, other: &CompileErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.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