pub enum EvaluationError {
Overflow,
Underflow,
TypeError,
DivisionByZero,
UndefinedVariable(String),
UndefinedFunction(String),
InvalidArgument(String),
ConversionOverflow,
Custom(String),
}Expand description
Evaluation errors.
Variants§
Overflow
Arithmetic overflow.
Underflow
Arithmetic underflow.
TypeError
Type error during evaluation.
DivisionByZero
Division by zero.
UndefinedVariable(String)
Undefined variable.
UndefinedFunction(String)
Undefined function.
InvalidArgument(String)
Function argument error.
ConversionOverflow
Conversion overflow.
Custom(String)
Custom error.
Trait Implementations§
Source§impl Clone for EvaluationError
impl Clone for EvaluationError
Source§fn clone(&self) -> EvaluationError
fn clone(&self) -> EvaluationError
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 EvaluationError
impl Debug for EvaluationError
Source§impl Display for EvaluationError
impl Display for EvaluationError
Source§impl PartialEq for EvaluationError
impl PartialEq for EvaluationError
impl Eq for EvaluationError
impl StructuralPartialEq for EvaluationError
Auto Trait Implementations§
impl Freeze for EvaluationError
impl RefUnwindSafe for EvaluationError
impl Send for EvaluationError
impl Sync for EvaluationError
impl Unpin for EvaluationError
impl UnsafeUnpin for EvaluationError
impl UnwindSafe for EvaluationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.