pub enum QueryNode {
Or(Vec<AndGroup>),
}Expand description
The top-level query: a disjunction of one or more AND-groups.
A query with no OR (e.g. level=error AND tag=api) parses as a single-
element vector containing one AndGroup, so the executor has exactly
one code path. This mirrors the v0.1 design choice of always wrapping
a single clause in And(vec![clause]) — the same idea, lifted up one
level of grammar.
Variants§
Trait Implementations§
impl StructuralPartialEq for QueryNode
Auto Trait Implementations§
impl Freeze for QueryNode
impl RefUnwindSafe for QueryNode
impl Send for QueryNode
impl Sync for QueryNode
impl Unpin for QueryNode
impl UnsafeUnpin for QueryNode
impl UnwindSafe for QueryNode
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