#[non_exhaustive]pub enum QueryErrorKind {
Empty,
UnexpectedEnd {
expected: &'static str,
},
UnexpectedToken {
found: String,
expected: &'static str,
},
UnterminatedString,
LoneOperator(char),
UnknownField(String),
ExpectedNumber,
InvalidOperator,
EmptyPath,
}Expand description
Kinds of QueryError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
The query is empty or only whitespace.
UnexpectedEnd
The query ended where expected was required.
UnexpectedToken
A token appeared where expected was required.
Fields
UnterminatedString
A quoted string has no closing quote.
LoneOperator(char)
A single & or |.
UnknownField(String)
A word followed by an operator that is not a known field.
ExpectedNumber
The field takes a number (children, depth).
InvalidOperator
The operator is not valid for this field (e.g. children ~ 2).
EmptyPath
An empty segment in a dotted path (attrs., attrs..x).
Trait Implementations§
Source§impl Clone for QueryErrorKind
impl Clone for QueryErrorKind
Source§impl Debug for QueryErrorKind
impl Debug for QueryErrorKind
impl Eq for QueryErrorKind
Source§impl PartialEq for QueryErrorKind
impl PartialEq for QueryErrorKind
impl StructuralPartialEq for QueryErrorKind
Auto Trait Implementations§
impl Freeze for QueryErrorKind
impl RefUnwindSafe for QueryErrorKind
impl Send for QueryErrorKind
impl Sync for QueryErrorKind
impl Unpin for QueryErrorKind
impl UnsafeUnpin for QueryErrorKind
impl UnwindSafe for QueryErrorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.