pub struct QuerySection<'query> { /* private fields */ }Expand description
A single segment of a compiled Query tree.
Each QuerySection maps to one CSS selector string in the query chain
(e.g. "main > section" or "> a[href]") and tracks its position in
the parent/sibling/child tree, what content to save, and whether it
matches all or only the first occurrence.
This type is internal bookkeeping; you rarely interact with it directly.
It is exposed publicly so that the Store can reference
query metadata.
Trait Implementations§
Source§impl<'query> Clone for QuerySection<'query>
impl<'query> Clone for QuerySection<'query>
Source§fn clone(&self) -> QuerySection<'query>
fn clone(&self) -> QuerySection<'query>
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<'query> Debug for QuerySection<'query>
impl<'query> Debug for QuerySection<'query>
Source§impl<'query> PartialEq for QuerySection<'query>
impl<'query> PartialEq for QuerySection<'query>
impl<'query> StructuralPartialEq for QuerySection<'query>
Auto Trait Implementations§
impl<'query> Freeze for QuerySection<'query>
impl<'query> RefUnwindSafe for QuerySection<'query>
impl<'query> Send for QuerySection<'query>
impl<'query> Sync for QuerySection<'query>
impl<'query> Unpin for QuerySection<'query>
impl<'query> UnsafeUnpin for QuerySection<'query>
impl<'query> UnwindSafe for QuerySection<'query>
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