pub enum ErrorKind {
Message(SharedString),
CompilationError(CompilationStage),
Std(Box<dyn StdError + Send + Sync + 'static>),
}Variants§
Message(SharedString)
CompilationError(CompilationStage)
Std(Box<dyn StdError + Send + Sync + 'static>)
Implementations§
Source§impl ErrorKind
impl ErrorKind
Sourcepub fn as_message(&self) -> Option<&SharedString>
pub fn as_message(&self) -> Option<&SharedString>
Returns the inner message for message-based errors.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl !UnwindSafe for ErrorKind
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