pub enum DerivationError {
UnknownParameter(ParameterName),
TypeMismatch {
op: String,
expected: String,
actual: String,
},
DivisionByZero,
InvalidArity {
builtin: String,
expected: usize,
actual: usize,
},
SelectionNotSupported,
}Expand description
Errors produced at Expression::eval time.
Variants§
UnknownParameter(ParameterName)
A Ref(name) pointed at a parameter that isn’t in the bindings.
TypeMismatch
An operation received operands of the wrong kind.
Fields
DivisionByZero
Integer division or modulo by zero.
InvalidArity
A builtin received the wrong number of arguments.
SelectionNotSupported
Selection values can’t flow through arithmetic/logic expressions.
Trait Implementations§
Source§impl Debug for DerivationError
impl Debug for DerivationError
Source§impl Display for DerivationError
impl Display for DerivationError
Source§impl Error for DerivationError
impl Error for DerivationError
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()
Source§impl From<DerivationError> for Error
impl From<DerivationError> for Error
Source§fn from(source: DerivationError) -> Self
fn from(source: DerivationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DerivationError
impl PartialEq for DerivationError
impl Eq for DerivationError
impl StructuralPartialEq for DerivationError
Auto Trait Implementations§
impl Freeze for DerivationError
impl RefUnwindSafe for DerivationError
impl Send for DerivationError
impl Sync for DerivationError
impl Unpin for DerivationError
impl UnsafeUnpin for DerivationError
impl UnwindSafe for DerivationError
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 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.