pub enum EvalError {
Show 13 variants
UnboundVar(VarId),
ArityMismatch {
context: &'static str,
expected: usize,
got: usize,
},
TypeMismatch {
expected: &'static str,
got: ValueKind,
},
NoMatchingAlt,
InfiniteLoop(ThunkId),
UnsupportedPrimOp(PrimOpKind),
HeapExhausted,
NotAFunction,
UnboundJoin(JoinId),
UserError,
Undefined,
DepthLimit,
InternalError(String),
}Expand description
Evaluation error.
Variants§
UnboundVar(VarId)
Variable not found in environment
ArityMismatch
Arity mismatch (wrong number of arguments or fields)
TypeMismatch
Type mismatch during evaluation
NoMatchingAlt
No matching alternative in case expression
InfiniteLoop(ThunkId)
Infinite loop detected (thunk forced itself)
UnsupportedPrimOp(PrimOpKind)
Unsupported primop
HeapExhausted
Heap exhausted
NotAFunction
Application of non-function value
UnboundJoin(JoinId)
Jump to unknown join point
UserError
Haskell error "..." called
Undefined
Haskell undefined forced
DepthLimit
Recursion depth limit exceeded during deep_force
InternalError(String)
Internal invariant violation (should never happen)
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalError
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