pub enum Matcher<E: Queryable> {
Or {
lhs: Box<Matcher<E>>,
rhs: Box<Matcher<E>>,
},
And {
lhs: Box<Matcher<E>>,
rhs: Box<Matcher<E>>,
},
Match {
key_value: E::KeyValue,
},
}Expand description
A node in the Query AST.
Variants§
Or
An OR matches if either of its branches match.
Fields
And
An AND matches only if both of its branches match.
Fields
Match
A match expression is the basic building block of a Query.
It matches if its key_value matches (i.e., Queryable::matches with this as argument)
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Matcher<E>
impl<E> RefUnwindSafe for Matcher<E>
impl<E> Send for Matcher<E>
impl<E> Sync for Matcher<E>
impl<E> Unpin for Matcher<E>
impl<E> UnwindSafe for Matcher<E>
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