pub enum SelectionKind {
All,
First,
}Expand description
Whether a query section should match all occurrences or only the first one.
Using SelectionKind::First enables an early-exit optimisation:
once the first match is found (and its content captured), the parser
can skip the remaining document for that query branch.
Variants§
All
Match every occurrence of the selector.
First
Match only the first occurrence, enabling early exit.
Trait Implementations§
Source§impl Clone for SelectionKind
impl Clone for SelectionKind
Source§fn clone(&self) -> SelectionKind
fn clone(&self) -> SelectionKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectionKind
impl Debug for SelectionKind
Source§impl PartialEq for SelectionKind
impl PartialEq for SelectionKind
impl Copy for SelectionKind
impl StructuralPartialEq for SelectionKind
Auto Trait Implementations§
impl Freeze for SelectionKind
impl RefUnwindSafe for SelectionKind
impl Send for SelectionKind
impl Sync for SelectionKind
impl Unpin for SelectionKind
impl UnsafeUnpin for SelectionKind
impl UnwindSafe for SelectionKind
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