pub enum ParseError {
EmptySelector,
InvalidKey(usize),
InvalidOperator(usize),
ExpectingEndOrComma(usize),
ExpectingValue(usize),
ExpectingLeftParenthesis(usize),
}
Variants§
EmptySelector
a selector must not be empty
InvalidKey(usize)
the key at the position was invalid (i.e. some chars are not allowed within a key)
InvalidOperator(usize)
the operator at the position is invalid
ExpectingEndOrComma(usize)
the selector must either finish at the position or another expression should start separated by a comma
ExpectingValue(usize)
a value was expected at the position
ExpectingLeftParenthesis(usize)
expecting opening parenthesis
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more