pub enum EvalErrorKind {
Show 14 variants
DivisionByZero,
ModuloByZero,
Overflow,
RangeError,
TypeMismatch,
UnknownIdentifier,
UnknownFunction,
IndexOutOfBounds,
KeyNotFound,
InvalidArgument,
NoMatchingOverload,
FieldNotFound,
InvalidConversion,
Internal,
}Expand description
The kind of evaluation error.
Variants§
DivisionByZero
Division by zero.
ModuloByZero
Modulo by zero.
Overflow
Integer overflow.
RangeError
Value out of valid range.
TypeMismatch
Type mismatch at runtime.
UnknownIdentifier
Unknown identifier (variable not found).
UnknownFunction
Unknown function.
IndexOutOfBounds
Index out of bounds.
KeyNotFound
Key not found in map.
InvalidArgument
Invalid argument.
NoMatchingOverload
No matching overload found.
FieldNotFound
Field not found on struct/message.
InvalidConversion
Invalid conversion.
Internal
Internal error (unexpected state).
Trait Implementations§
Source§impl Clone for EvalErrorKind
impl Clone for EvalErrorKind
Source§fn clone(&self) -> EvalErrorKind
fn clone(&self) -> EvalErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EvalErrorKind
impl Debug for EvalErrorKind
Source§impl PartialEq for EvalErrorKind
impl PartialEq for EvalErrorKind
impl Copy for EvalErrorKind
impl Eq for EvalErrorKind
impl StructuralPartialEq for EvalErrorKind
Auto Trait Implementations§
impl Freeze for EvalErrorKind
impl RefUnwindSafe for EvalErrorKind
impl Send for EvalErrorKind
impl Sync for EvalErrorKind
impl Unpin for EvalErrorKind
impl UnsafeUnpin for EvalErrorKind
impl UnwindSafe for EvalErrorKind
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