pub enum BinaryOperatorError<L, R> {
LeftError(L),
RightError(R),
EvaluationError(BinaryEvaluationError),
}Expand description
Error produced during the evaluation of a binary operator.
An error can occur when evaluating a binary operator in the following circumstances:
- An error occurs during the evaluation of the left subformula
- An error occurs during the evaluation of the right subformula
- An error occurs during the application of the binary operation on the outputs of the
sub-formulas, resulting in a
BinaryEvaluationError.
Variants§
LeftError(L)
An error produced by the subformula on the left of the operator
RightError(R)
An error produced by the subformula on the right of the operator
EvaluationError(BinaryEvaluationError)
Trait Implementations§
Source§impl<L: Clone, R: Clone> Clone for BinaryOperatorError<L, R>
impl<L: Clone, R: Clone> Clone for BinaryOperatorError<L, R>
Source§fn clone(&self) -> BinaryOperatorError<L, R>
fn clone(&self) -> BinaryOperatorError<L, R>
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<L, R> Display for BinaryOperatorError<L, R>
impl<L, R> Display for BinaryOperatorError<L, R>
Source§impl<L, R> Error for BinaryOperatorError<L, R>
impl<L, R> Error for BinaryOperatorError<L, R>
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<L, R> From<BinaryEvaluationError> for BinaryOperatorError<L, R>
impl<L, R> From<BinaryEvaluationError> for BinaryOperatorError<L, R>
Source§fn from(source: BinaryEvaluationError) -> Self
fn from(source: BinaryEvaluationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<L, R> Freeze for BinaryOperatorError<L, R>
impl<L, R> RefUnwindSafe for BinaryOperatorError<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for BinaryOperatorError<L, R>
impl<L, R> Sync for BinaryOperatorError<L, R>
impl<L, R> Unpin for BinaryOperatorError<L, R>
impl<L, R> UnwindSafe for BinaryOperatorError<L, R>where
L: UnwindSafe,
R: UnwindSafe,
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