Enum quil_rs::expression::EvaluationError
source · pub enum EvaluationError {
Incomplete,
NumberNotReal,
NotANumber,
}
Expand description
The different possible types of errors that could occur during expression evaluation.
Variants§
Incomplete
There wasn’t enough information to completely evaluate an expression.
NumberNotReal
An operation expected a real number but received a complex one.
NotANumber
An operation expected a number but received a different type of expression.
Trait Implementations§
source§impl Clone for EvaluationError
impl Clone for EvaluationError
source§fn clone(&self) -> EvaluationError
fn clone(&self) -> EvaluationError
Returns a copy 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 PartialEq<EvaluationError> for EvaluationError
impl PartialEq<EvaluationError> for EvaluationError
source§fn eq(&self, other: &EvaluationError) -> bool
fn eq(&self, other: &EvaluationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EvaluationError
impl StructuralEq for EvaluationError
impl StructuralPartialEq for EvaluationError
Auto Trait Implementations§
impl RefUnwindSafe for EvaluationError
impl Send for EvaluationError
impl Sync for EvaluationError
impl Unpin 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.