pub struct OptionRecurseQuery { /* private fields */ }Expand description
A recursive query that expects an optional single item.
Implementations§
Source§impl OptionRecurseQuery
impl OptionRecurseQuery
Sourcepub fn execute_with_context<V>(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
recurse: &Recurse<'_, V>,
) -> Result<Option<V>>
pub fn execute_with_context<V>( &self, document: &mut Documents, context: &DynamicContext<'_>, recurse: &Recurse<'_, V>, ) -> Result<Option<V>>
Execute the recursive query against an explicit dynamic context.
Trait Implementations§
Source§impl Clone for OptionRecurseQuery
impl Clone for OptionRecurseQuery
Source§fn clone(&self) -> OptionRecurseQuery
fn clone(&self) -> OptionRecurseQuery
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 OptionRecurseQuery
impl Debug for OptionRecurseQuery
Source§impl<V> RecurseQuery<Option<V>, V> for OptionRecurseQuery
impl<V> RecurseQuery<Option<V>, V> for OptionRecurseQuery
Source§fn execute_with_context(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
recurse: &Recurse<'_, V>,
) -> Result<Option<V>>
fn execute_with_context( &self, document: &mut Documents, context: &DynamicContext<'_>, recurse: &Recurse<'_, V>, ) -> Result<Option<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 OptionRecurseQuery
impl !RefUnwindSafe for OptionRecurseQuery
impl !Send for OptionRecurseQuery
impl !Sync for OptionRecurseQuery
impl Unpin for OptionRecurseQuery
impl !UnwindSafe for OptionRecurseQuery
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