pub enum ExprResult<A, B, C> {
OperandErr(OperandErr),
InvalidToken {
evaluator: A,
variable: B,
operand: C,
},
}Expand description
Used to specify the error during the conversion.
Variants§
Trait Implementations§
Source§impl<A: PartialEq, B: PartialEq, C: PartialEq> PartialEq for ExprResult<A, B, C>
impl<A: PartialEq, B: PartialEq, C: PartialEq> PartialEq for ExprResult<A, B, C>
Source§fn eq(&self, other: &ExprResult<A, B, C>) -> bool
fn eq(&self, other: &ExprResult<A, B, C>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<A, B, C> StructuralPartialEq for ExprResult<A, B, C>
Auto Trait Implementations§
impl<A, B, C> Freeze for ExprResult<A, B, C>
impl<A, B, C> RefUnwindSafe for ExprResult<A, B, C>
impl<A, B, C> Send for ExprResult<A, B, C>
impl<A, B, C> Sync for ExprResult<A, B, C>
impl<A, B, C> Unpin for ExprResult<A, B, C>
impl<A, B, C> UnsafeUnpin for ExprResult<A, B, C>
impl<A, B, C> UnwindSafe for ExprResult<A, B, C>
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, U> TryIntoRef<U> for Twhere
U: TryFromRef<T>,
impl<T, U> TryIntoRef<U> for Twhere
U: TryFromRef<T>,
Source§type Err = <U as TryFromRef<T>>::Err
type Err = <U as TryFromRef<T>>::Err
The type returned in the event of a conversion error.
Source§fn try_into_ref(&self) -> Result<U, <U as TryFromRef<T>>::Err>
fn try_into_ref(&self) -> Result<U, <U as TryFromRef<T>>::Err>
Performs the conversion.