pub enum CompilerError<T> {
Failed,
Interrupted(T),
Skipped,
}
Expand description
An error type used to represent an error that has already been reported by the compiler.
Variants§
Failed
Compilation failed, either due to normal errors or ICE.
Interrupted(T)
Compilation was interrupted.
Skipped
Compilation skipped. This happens when users invoke rustc to retrieve information such as –version.
Trait Implementations§
source§impl<T: Clone> Clone for CompilerError<T>
impl<T: Clone> Clone for CompilerError<T>
source§fn clone(&self) -> CompilerError<T>
fn clone(&self) -> CompilerError<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for CompilerError<T>where
T: Debug,
impl<T> Debug for CompilerError<T>where
T: Debug,
source§impl<T> Display for CompilerError<T>where
T: Display,
impl<T> Display for CompilerError<T>where
T: Display,
source§impl<T> Error for CompilerError<T>
impl<T> Error for CompilerError<T>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T: PartialEq> PartialEq for CompilerError<T>
impl<T: PartialEq> PartialEq for CompilerError<T>
impl<T: Copy> Copy for CompilerError<T>
impl<T: Eq> Eq for CompilerError<T>
impl<T> StructuralPartialEq for CompilerError<T>
Auto Trait Implementations§
impl<T> Freeze for CompilerError<T>where
T: Freeze,
impl<T> RefUnwindSafe for CompilerError<T>where
T: RefUnwindSafe,
impl<T> Send for CompilerError<T>where
T: Send,
impl<T> Sync for CompilerError<T>where
T: Sync,
impl<T> Unpin for CompilerError<T>where
T: Unpin,
impl<T> UnwindSafe for CompilerError<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.