pub enum InvalidUpdateError {
ConstantUpdateNonZero(i64),
AdditionalVariable(Variable),
ParameterFound(Parameter),
MultipleOccurrences,
}Expand description
Custom Error type to indicate a malformed update expression
Variants§
ConstantUpdateNonZero(i64)
Error indicating that the update set the variable to a constant value that is not 0
AdditionalVariable(Variable)
Error indicating that the update referenced an additional variable
ParameterFound(Parameter)
Error indicating that the update referenced a parameter
MultipleOccurrences
Error indicating that the variable to update occurred multiple times in the update expression
Trait Implementations§
Source§impl Clone for InvalidUpdateError
impl Clone for InvalidUpdateError
Source§fn clone(&self) -> InvalidUpdateError
fn clone(&self) -> InvalidUpdateError
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 InvalidUpdateError
impl Debug for InvalidUpdateError
Source§impl Display for InvalidUpdateError
impl Display for InvalidUpdateError
Source§impl Error for InvalidUpdateError
impl Error for InvalidUpdateError
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<EvaluationError<Variable>> for InvalidUpdateError
impl From<EvaluationError<Variable>> for InvalidUpdateError
Source§fn from(value: EvaluationError<Variable>) -> Self
fn from(value: EvaluationError<Variable>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidUpdateError
impl RefUnwindSafe for InvalidUpdateError
impl Send for InvalidUpdateError
impl Sync for InvalidUpdateError
impl Unpin for InvalidUpdateError
impl UnwindSafe for InvalidUpdateError
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