pub struct SequenceQuery { /* private fields */ }Expand description
A query that returns a sequence.
This query returns a Sequence object that can be used to access
the items in the sequence. It represents an XPath sequence. The items
in the sequence are not converted.
Construct this using Queries::sequence.
This is useful if you want to work with the sequence directly.
Implementations§
Source§impl SequenceQuery
impl SequenceQuery
Sourcepub fn execute_with_context(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
) -> Result<Sequence>
pub fn execute_with_context( &self, document: &mut Documents, context: &DynamicContext<'_>, ) -> Result<Sequence>
Execute the query against an itemable with an explict dynamic context.
Trait Implementations§
Source§impl Clone for SequenceQuery
impl Clone for SequenceQuery
Source§fn clone(&self) -> SequenceQuery
fn clone(&self) -> SequenceQuery
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 SequenceQuery
impl Debug for SequenceQuery
Source§impl Query<Sequence> for SequenceQuery
impl Query<Sequence> for SequenceQuery
Source§fn execute_with_context(
&self,
document: &mut Documents,
context: &DynamicContext<'_>,
) -> Result<Sequence>
fn execute_with_context( &self, document: &mut Documents, context: &DynamicContext<'_>, ) -> Result<Sequence>
Execute the query against a dynamic 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,
documents: &Documents,
) -> DynamicContextBuilder<'_>
fn dynamic_context_builder( &self, documents: &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 map<T, F>(self, f: F) -> MapQuery<V, T, Self, F>
fn map<T, F>(self, f: F) -> MapQuery<V, T, Self, F>
Map the the result of the query to a different type. Read more
Source§fn execute(&self, documents: &mut Documents, item: impl Itemable) -> Result<V>
fn execute(&self, documents: &mut Documents, item: impl Itemable) -> Result<V>
Excute the query against an itemable
Source§fn execute_build_context(
&self,
documents: &mut Documents,
build: impl FnOnce(&mut DynamicContextBuilder<'_>),
) -> Result<V>
fn execute_build_context( &self, documents: &mut Documents, build: impl FnOnce(&mut DynamicContextBuilder<'_>), ) -> Result<V>
Execute a query with a specific dynamic context. Read more
Auto Trait Implementations§
impl Freeze for SequenceQuery
impl !RefUnwindSafe for SequenceQuery
impl !Send for SequenceQuery
impl !Sync for SequenceQuery
impl Unpin for SequenceQuery
impl !UnwindSafe for SequenceQuery
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