pub enum ErrorKind {
OutOfMemory,
UnboundVariable,
NotAFunction,
WrongArgCount,
TypeError,
DivisionByZero,
Parse,
UserError,
StackOverflow,
NotAPair,
Generic,
}Expand description
Error kind enumeration
Variants§
OutOfMemory
Arena is full
UnboundVariable
Unbound variable
NotAFunction
Not a function
WrongArgCount
Wrong number of arguments
TypeError
Type error
DivisionByZero
Division by zero
Parse
Parse error
UserError
User-raised error
StackOverflow
Stack overflow (recursion too deep)
NotAPair
Cannot mutate non-pair
Generic
Generic error
Implementations§
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin 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