pub struct QueryFactory {}Expand description
A factory for creating child QueryBuilders inside a
QueryBuilder::then closure.
You never construct this directly; it is provided as the argument to
the closure passed to .then().
Implementations§
Source§impl<'query> QueryFactory
impl<'query> QueryFactory
Sourcepub fn all(&self, query: &'query str, save: Save) -> QueryBuilder<'query>
pub fn all(&self, query: &'query str, save: Save) -> QueryBuilder<'query>
Create a child query that matches all occurrences of the selector.
Sourcepub fn first(&self, query: &'query str, save: Save) -> QueryBuilder<'query>
pub fn first(&self, query: &'query str, save: Save) -> QueryBuilder<'query>
Create a child query that matches only the first occurrence.
Auto Trait Implementations§
impl Freeze for QueryFactory
impl RefUnwindSafe for QueryFactory
impl Send for QueryFactory
impl Sync for QueryFactory
impl Unpin for QueryFactory
impl UnsafeUnpin for QueryFactory
impl UnwindSafe for QueryFactory
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