Enum stam::QueryResultIter
source · pub enum QueryResultIter<'store> {
Annotations(Box<dyn Iterator<Item = ResultItem<'store, Annotation>> + 'store>),
Data(Box<dyn Iterator<Item = ResultItem<'store, AnnotationData>> + 'store>),
Keys(Box<dyn Iterator<Item = ResultItem<'store, DataKey>> + 'store>),
DataSets(Box<dyn Iterator<Item = ResultItem<'store, AnnotationDataSet>> + 'store>),
TextSelections(Box<dyn Iterator<Item = ResultTextSelection<'store>> + 'store>),
Resources(Box<dyn Iterator<Item = ResultItem<'store, TextResource>> + 'store>),
}Expand description
This type abstracts over all the main iterators. This abstraction uses dynamic dispatch so comes with a small performance cost
Variants§
Annotations(Box<dyn Iterator<Item = ResultItem<'store, Annotation>> + 'store>)
Corresponds to result type ANNOTATION in STAMQL.
The contained iterator implements trait AnnotationIterator.
Data(Box<dyn Iterator<Item = ResultItem<'store, AnnotationData>> + 'store>)
Corresponds to result type DATA in STAMQL
The contained iterator implements trait DataIterator.
Keys(Box<dyn Iterator<Item = ResultItem<'store, DataKey>> + 'store>)
Corresponds to result type KEY in STAMQL
The contained iterator implements trait KeyIterator.
DataSets(Box<dyn Iterator<Item = ResultItem<'store, AnnotationDataSet>> + 'store>)
Corresponds to result type DATASET in STAMQL
TextSelections(Box<dyn Iterator<Item = ResultTextSelection<'store>> + 'store>)
Corresponds to result type TEXT in STAMQL
The contained iterator implements trait TextSelectionIterator.
Resources(Box<dyn Iterator<Item = ResultItem<'store, TextResource>> + 'store>)
Corresponds to result type RESOURCE in STAMQL
The contained iterator implements trait ResourcesIterator.
Auto Trait Implementations§
impl<'store> !RefUnwindSafe for QueryResultIter<'store>
impl<'store> !Send for QueryResultIter<'store>
impl<'store> !Sync for QueryResultIter<'store>
impl<'store> Unpin for QueryResultIter<'store>
impl<'store> !UnwindSafe for QueryResultIter<'store>
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