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,
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.