pub enum ErrorCause<E1, E2> {
SyntaxError(SyntaxError),
EvalError(EvalError<E1, E2>),
}
Expand description
Cause of an arithmetic expansion error
Variants§
SyntaxError(SyntaxError)
Syntax error parsing the expression
EvalError(EvalError<E1, E2>)
Error evaluating the parsed expression
Trait Implementations§
Source§impl<E1: Clone, E2: Clone> Clone for ErrorCause<E1, E2>
impl<E1: Clone, E2: Clone> Clone for ErrorCause<E1, E2>
Source§fn clone(&self) -> ErrorCause<E1, E2>
fn clone(&self) -> ErrorCause<E1, E2>
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<E1, E2> Display for ErrorCause<E1, E2>
impl<E1, E2> Display for ErrorCause<E1, E2>
Source§impl<E1, E2> Error for ErrorCause<E1, E2>
impl<E1, E2> Error for ErrorCause<E1, E2>
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<E1, E2> From<EvalError<E1, E2>> for ErrorCause<E1, E2>
impl<E1, E2> From<EvalError<E1, E2>> for ErrorCause<E1, E2>
Source§impl<E1, E2> From<SyntaxError> for ErrorCause<E1, E2>
impl<E1, E2> From<SyntaxError> for ErrorCause<E1, E2>
Source§fn from(source: SyntaxError) -> Self
fn from(source: SyntaxError) -> Self
Converts to this type from the input type.
Source§impl<E1, E2> From<TokenError> for ErrorCause<E1, E2>
impl<E1, E2> From<TokenError> for ErrorCause<E1, E2>
Source§fn from(e: TokenError) -> Self
fn from(e: TokenError) -> Self
Converts to this type from the input type.
impl<E1: Eq, E2: Eq> Eq for ErrorCause<E1, E2>
impl<E1, E2> StructuralPartialEq for ErrorCause<E1, E2>
Auto Trait Implementations§
impl<E1, E2> Freeze for ErrorCause<E1, E2>
impl<E1, E2> RefUnwindSafe for ErrorCause<E1, E2>where
E1: RefUnwindSafe,
E2: RefUnwindSafe,
impl<E1, E2> Send for ErrorCause<E1, E2>
impl<E1, E2> Sync for ErrorCause<E1, E2>
impl<E1, E2> Unpin for ErrorCause<E1, E2>
impl<E1, E2> UnwindSafe for ErrorCause<E1, E2>where
E1: UnwindSafe,
E2: 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