pub enum Error {
ParseError(ParseError),
ResolveError(ResolveError),
CompileError(CompileError),
RuntimeError,
}
Expand description
An error generated during program compilation or execution.
Variants
ParseError(ParseError)
ResolveError(ResolveError)
CompileError(CompileError)
RuntimeError
Implementations
Trait Implementations
sourceimpl From<CompileError> for Error
impl From<CompileError> for Error
sourcefn from(error: CompileError) -> Error
fn from(error: CompileError) -> Error
Converts to this type from the input type.
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(error: ParseError) -> Error
fn from(error: ParseError) -> Error
Converts to this type from the input type.
sourceimpl From<ResolveError> for Error
impl From<ResolveError> for Error
sourcefn from(error: ResolveError) -> Error
fn from(error: ResolveError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more