pub struct ManyRecurseQuery { /* private fields */ }Expand description
A recursive query that expects many items as a result.
Implementations§
Source§impl ManyRecurseQuery
impl ManyRecurseQuery
Sourcepub fn execute_with_context<V>(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
recurse: &Recurse<'_, V>,
) -> Result<Vec<V>>
pub fn execute_with_context<V>( &self, document: &mut Documents, context: &DynamicContext<'_>, recurse: &Recurse<'_, V>, ) -> Result<Vec<V>>
Execute the query against an itemable, with variables.
To do the conversion pass in a Recurse object. This
allows you to use a convert function recursively.
Trait Implementations§
Source§impl Clone for ManyRecurseQuery
impl Clone for ManyRecurseQuery
Source§fn clone(&self) -> ManyRecurseQuery
fn clone(&self) -> ManyRecurseQuery
Returns a copy 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 ManyRecurseQuery
impl Debug for ManyRecurseQuery
Source§impl<V> RecurseQuery<Vec<V>, V> for ManyRecurseQuery
impl<V> RecurseQuery<Vec<V>, V> for ManyRecurseQuery
Source§fn execute_with_context(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
recurse: &Recurse<'_, V>,
) -> Result<Vec<V>>
fn execute_with_context( &self, document: &mut Documents, context: &DynamicContext<'_>, recurse: &Recurse<'_, V>, ) -> Result<Vec<V>>
Execute the query against an itemable, with context. Read more
Source§fn static_context(&self) -> &StaticContext
fn static_context(&self) -> &StaticContext
Get the static context for the query.
Source§fn dynamic_context_builder(
&self,
document: &Documents,
) -> DynamicContextBuilder<'_>
fn dynamic_context_builder( &self, document: &Documents, ) -> DynamicContextBuilder<'_>
Get a dynamic context builder for the query, configured with the
query’s static context and the document’s documents. Read more
Source§fn execute(
&self,
document: &mut Documents,
item: &Item,
recurse: &Recurse<'_, V>,
) -> Result<C>
fn execute( &self, document: &mut Documents, item: &Item, recurse: &Recurse<'_, V>, ) -> Result<C>
Execute the query against an itemable. Read more
Source§fn execute_build_context(
&self,
document: &mut Documents,
recurse: &Recurse<'_, V>,
build: impl FnOnce(&mut DynamicContextBuilder<'_>),
) -> Result<C>
fn execute_build_context( &self, document: &mut Documents, recurse: &Recurse<'_, V>, build: impl FnOnce(&mut DynamicContextBuilder<'_>), ) -> Result<C>
Execute a query against an itemable, building the context. Read more
Auto Trait Implementations§
impl Freeze for ManyRecurseQuery
impl !RefUnwindSafe for ManyRecurseQuery
impl !Send for ManyRecurseQuery
impl !Sync for ManyRecurseQuery
impl Unpin for ManyRecurseQuery
impl !UnwindSafe for ManyRecurseQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more