pub enum InterpretError {
Unknown,
CompileError(CompileError),
RuntimeError(RuntimeError),
}Variants§
Trait Implementations§
Source§impl Debug for InterpretError
impl Debug for InterpretError
Source§impl Display for InterpretError
impl Display for InterpretError
Source§impl Error for InterpretError
impl Error for InterpretError
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 From<CompileError> for InterpretError
impl From<CompileError> for InterpretError
Source§fn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for InterpretError
impl From<RuntimeError> for InterpretError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InterpretError
impl !RefUnwindSafe for InterpretError
impl !Send for InterpretError
impl !Sync for InterpretError
impl Unpin for InterpretError
impl !UnwindSafe for InterpretError
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