pub struct OneRecurseQuery { /* private fields */ }Expand description
A recursive query that expects a single item as a result.
Implementations§
Source§impl OneRecurseQuery
impl OneRecurseQuery
Sourcepub fn execute_with_context<V>(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
recurse: &Recurse<'_, V>,
) -> Result<V>
pub fn execute_with_context<V>( &self, document: &mut Documents, context: &DynamicContext<'_>, recurse: &Recurse<'_, V>, ) -> Result<V>
Execute the query against an itemable, with context.
To do the conversion pass in a Recurse object. This
allows you to use a convert function recursively.
Trait Implementations§
Source§impl Clone for OneRecurseQuery
impl Clone for OneRecurseQuery
Source§fn clone(&self) -> OneRecurseQuery
fn clone(&self) -> OneRecurseQuery
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 OneRecurseQuery
impl Debug for OneRecurseQuery
Source§impl<V> RecurseQuery<V, V> for OneRecurseQuery
impl<V> RecurseQuery<V, V> for OneRecurseQuery
Source§fn execute_with_context(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
recurse: &Recurse<'_, V>,
) -> Result<V>
fn execute_with_context( &self, document: &mut Documents, context: &DynamicContext<'_>, recurse: &Recurse<'_, V>, ) -> Result<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 OneRecurseQuery
impl !RefUnwindSafe for OneRecurseQuery
impl !Send for OneRecurseQuery
impl !Sync for OneRecurseQuery
impl Unpin for OneRecurseQuery
impl !UnwindSafe for OneRecurseQuery
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