#[repr(u8)]pub enum ErrorKind {
OutOfMemory = 0,
UnboundVariable = 1,
NotAFunction = 2,
WrongArgCount = 3,
TypeError = 4,
DivisionByZero = 5,
Parse = 6,
UserError = 7,
StackOverflow = 8,
NotAPair = 9,
Generic = 10,
SyntaxError = 11,
}Expand description
Error kind enumeration
Variants§
OutOfMemory = 0
Arena is full
UnboundVariable = 1
Unbound variable
NotAFunction = 2
Not a function
WrongArgCount = 3
Wrong number of arguments
TypeError = 4
Type error
DivisionByZero = 5
Division by zero
Parse = 6
Parse error
UserError = 7
User-raised error
StackOverflow = 8
Stack overflow (recursion too deep)
NotAPair = 9
Cannot mutate non-pair
Generic = 10
Generic error
SyntaxError = 11
Syntax/macro expansion 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