pub struct SortedScanQuery<'a, K> { /* private fields */ }Expand description
Materialized, sorted view of findings selected by a ScanQuery.
This type owns only the vector of borrowed (source, finding) pairs.
Source keys and findings remain owned by the originating
ScanResults.
Implementations§
Source§impl<'a, K> SortedScanQuery<'a, K>
impl<'a, K> SortedScanQuery<'a, K>
Sourcepub const fn has_matches(&self) -> bool
pub const fn has_matches(&self) -> bool
Returns true when the sorted query contains at least one finding.
Sourcepub fn iter(
&self,
) -> impl DoubleEndedIterator<Item = (&'a K, &'a Finding)> + ExactSizeIterator + '_
pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = (&'a K, &'a Finding)> + ExactSizeIterator + '_
Iterates over sorted (source, finding) pairs.
Sourcepub fn as_slice(&self) -> &[(&'a K, &'a Finding)]
pub fn as_slice(&self) -> &[(&'a K, &'a Finding)]
Returns the sorted findings as a borrowed slice.
Trait Implementations§
Source§impl<'a, K: Clone> Clone for SortedScanQuery<'a, K>
impl<'a, K: Clone> Clone for SortedScanQuery<'a, K>
Source§fn clone(&self) -> SortedScanQuery<'a, K>
fn clone(&self) -> SortedScanQuery<'a, K>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, K: Debug> Debug for SortedScanQuery<'a, K>
impl<'a, K: Debug> Debug for SortedScanQuery<'a, K>
Source§impl<'a, K> IntoIterator for SortedScanQuery<'a, K>
impl<'a, K> IntoIterator for SortedScanQuery<'a, K>
Source§impl<'query, 'a, K> IntoIterator for &'query SortedScanQuery<'a, K>
impl<'query, 'a, K> IntoIterator for &'query SortedScanQuery<'a, K>
Auto Trait Implementations§
impl<'a, K> Freeze for SortedScanQuery<'a, K>
impl<'a, K> RefUnwindSafe for SortedScanQuery<'a, K>
impl<'a, K> Send for SortedScanQuery<'a, K>
impl<'a, K> Sync for SortedScanQuery<'a, K>
impl<'a, K> Unpin for SortedScanQuery<'a, K>
impl<'a, K> UnsafeUnpin for SortedScanQuery<'a, K>
impl<'a, K> UnwindSafe for SortedScanQuery<'a, K>
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