pub enum Error<'input> {
UnexpectedEnd,
UnexpectedToken(Token<'input>),
Lexer(Error),
MoreInput(Vec<Token<'input>>),
EmptyPredicate,
EmptyRange,
}
Variants§
UnexpectedEnd
Needed more tokens for parsing, but none are available.
UnexpectedToken(Token<'input>)
Unexpected token.
Lexer(Error)
An error occurred in the lexer.
MoreInput(Vec<Token<'input>>)
More input available.
EmptyPredicate
Encountered empty predicate in a set of predicates.
EmptyRange
Encountered an empty range.
Trait Implementations§
Source§impl<'input> Ord for Error<'input>
impl<'input> Ord for Error<'input>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'input> PartialOrd for Error<'input>
impl<'input> PartialOrd for Error<'input>
impl<'input> Eq for Error<'input>
impl<'input> StructuralPartialEq for Error<'input>
Auto Trait Implementations§
impl<'input> Freeze for Error<'input>
impl<'input> RefUnwindSafe for Error<'input>
impl<'input> Send for Error<'input>
impl<'input> Sync for Error<'input>
impl<'input> Unpin for Error<'input>
impl<'input> UnwindSafe for Error<'input>
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