pub enum ParseError<T: Eval> {
LiteralParseError(T::ErrParse),
SyntaxError(SyntaxError),
}
Expand description
An error that occurs while parsing an expression from a string.
Variants§
LiteralParseError(T::ErrParse)
An error that occurred while calling the literal’s own parse function.
SyntaxError(SyntaxError)
See SyntaxError.
Trait Implementations§
Source§impl<T: Eval> Display for ParseError<T>
impl<T: Eval> Display for ParseError<T>
Source§impl<T: Eval> Error for ParseError<T>
impl<T: Eval> Error for ParseError<T>
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<T: Eval> From<ParseError<T>> for EvalError<T>
impl<T: Eval> From<ParseError<T>> for EvalError<T>
Source§fn from(source: ParseError<T>) -> Self
fn from(source: ParseError<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Eval> From<SyntaxError> for ParseError<T>
impl<T: Eval> From<SyntaxError> for ParseError<T>
Source§fn from(source: SyntaxError) -> Self
fn from(source: SyntaxError) -> Self
Converts to this type from the input type.
impl<T: Eval> StructuralPartialEq for ParseError<T>
Auto Trait Implementations§
impl<T> Freeze for ParseError<T>
impl<T> RefUnwindSafe for ParseError<T>
impl<T> Send for ParseError<T>
impl<T> Sync for ParseError<T>
impl<T> Unpin for ParseError<T>
impl<T> UnwindSafe for ParseError<T>
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