pub struct MapScan<V> { /* private fields */ }Expand description
Opaque Map scan view. No public constructor. V is typically &'a S: ShardSource.
Trait Implementations§
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> BulkScan for MapScan<&'a TypedMap<K, T, C, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> BulkScan for MapScan<&'a TypedMap<K, T, C, H>>
Source§type TryKeys = InfallibleKeys<K, MapKeyIter<'a, K, T, C, H>>
type TryKeys = InfallibleKeys<K, MapKeyIter<'a, K, T, C, H>>
Strict key iterator for a bounded bulk pass. Read more
Source§fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
Walk keys in the supplied bounds and direction through the strict path.
Source§fn delete_key(&self, key: &K) -> DbResult<bool>
fn delete_key(&self, key: &K) -> DbResult<bool>
Delete one key through the collection’s ordinary non-transactional
write path, returning whether that key was actually removed.
Source§fn reject_nontx_bulk(&self) -> DbResult<()>
fn reject_nontx_bulk(&self) -> DbResult<()>
Refuse a non-transactional bulk mutation before it scans or deletes a
row when this source requires transactional stream or claim handling.
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> BulkScan for MapScan<&'a ConstMap<K, V, H, D>>
impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> BulkScan for MapScan<&'a ConstMap<K, V, H, D>>
Source§type TryKeys = InfallibleKeys<K, ConstMapKeyIter<'a, K, V, H, D>>
type TryKeys = InfallibleKeys<K, ConstMapKeyIter<'a, K, V, H, D>>
Strict key iterator for a bounded bulk pass. Read more
Source§fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
Walk keys in the supplied bounds and direction through the strict path.
Source§fn delete_key(&self, key: &K) -> DbResult<bool>
fn delete_key(&self, key: &K) -> DbResult<bool>
Delete one key through the collection’s ordinary non-transactional
write path, returning whether that key was actually removed.
Source§fn reject_nontx_bulk(&self) -> DbResult<()>
fn reject_nontx_bulk(&self) -> DbResult<()>
Refuse a non-transactional bulk mutation before it scans or deletes a
row when this source requires transactional stream or claim handling.
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> BulkScan for MapScan<&'a ZeroMap<K, V, T, H, D>>
impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> BulkScan for MapScan<&'a ZeroMap<K, V, T, H, D>>
Source§type TryKeys = InfallibleKeys<K, ZeroMapKeyIter<'a, K, V, T, H, D>>
type TryKeys = InfallibleKeys<K, ZeroMapKeyIter<'a, K, V, T, H, D>>
Strict key iterator for a bounded bulk pass. Read more
Source§fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
Walk keys in the supplied bounds and direction through the strict path.
Source§fn delete_key(&self, key: &K) -> DbResult<bool>
fn delete_key(&self, key: &K) -> DbResult<bool>
Delete one key through the collection’s ordinary non-transactional
write path, returning whether that key was actually removed.
Source§fn reject_nontx_bulk(&self) -> DbResult<()>
fn reject_nontx_bulk(&self) -> DbResult<()>
Refuse a non-transactional bulk mutation before it scans or deletes a
row when this source requires transactional stream or claim handling.
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> BulkScan for MapScan<&'a VarMap<K, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> BulkScan for MapScan<&'a VarMap<K, H>>
Source§type TryKeys = InfallibleKeys<K, VarMapKeyIter<'a, K, H>>
type TryKeys = InfallibleKeys<K, VarMapKeyIter<'a, K, H>>
Strict key iterator for a bounded bulk pass. Read more
Source§fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
Walk keys in the supplied bounds and direction through the strict path.
Source§fn delete_key(&self, key: &K) -> DbResult<bool>
fn delete_key(&self, key: &K) -> DbResult<bool>
Delete one key through the collection’s ordinary non-transactional
write path, returning whether that key was actually removed.
Source§fn reject_nontx_bulk(&self) -> DbResult<()>
fn reject_nontx_bulk(&self) -> DbResult<()>
Refuse a non-transactional bulk mutation before it scans or deletes a
row when this source requires transactional stream or claim handling.
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> BulkScan for MapScan<&'a VarTypedMap<K, T, C, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> BulkScan for MapScan<&'a VarTypedMap<K, T, C, H>>
Source§type TryKeys = InfallibleKeys<K, VarTypedMapKeyIter<'a, K, T, C, H>>
type TryKeys = InfallibleKeys<K, VarTypedMapKeyIter<'a, K, T, C, H>>
Strict key iterator for a bounded bulk pass. Read more
Source§fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
fn try_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::TryKeys
Walk keys in the supplied bounds and direction through the strict path.
Source§fn delete_key(&self, key: &K) -> DbResult<bool>
fn delete_key(&self, key: &K) -> DbResult<bool>
Delete one key through the collection’s ordinary non-transactional
write path, returning whether that key was actually removed.
Source§fn reject_nontx_bulk(&self) -> DbResult<()>
fn reject_nontx_bulk(&self) -> DbResult<()>
Refuse a non-transactional bulk mutation before it scans or deletes a
row when this source requires transactional stream or claim handling.
impl<V: Copy> Copy for MapScan<V>
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> OrderedScan for MapScan<&'a TypedMap<K, T, C, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> OrderedScan for MapScan<&'a TypedMap<K, T, C, H>>
type Key = K
type Row = (K, TypedRef<'a, T>)
type Iter = MapRowIter<'a, K, T, C, H>
type KeyIter = MapKeyIter<'a, K, T, C, H>
Source§fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
Takes
self by value (TreeScan/MapScan are Copy) so the returned
iterator is not tied to a temporary &Self borrow — required for
Scope::iter(self) fluent chains under a generic S: OrderedScan.fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter
Source§fn peek_row_key(row: &Self::Row) -> K
fn peek_row_key(row: &Self::Row) -> K
Key of
row without consuming it — used by pagination before handing the row to a closure.Source§impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> OrderedScan for MapScan<&'a ConstMap<K, V, H, D>>
impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> OrderedScan for MapScan<&'a ConstMap<K, V, H, D>>
type Key = K
type Row = (K, [u8; V])
type Iter = ConstMapRowIter<'a, K, V, H, D>
type KeyIter = ConstMapKeyIter<'a, K, V, H, D>
Source§fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
Takes
self by value (TreeScan/MapScan are Copy) so the returned
iterator is not tied to a temporary &Self borrow — required for
Scope::iter(self) fluent chains under a generic S: OrderedScan.fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter
Source§fn peek_row_key(row: &Self::Row) -> K
fn peek_row_key(row: &Self::Row) -> K
Key of
row without consuming it — used by pagination before handing the row to a closure.Source§impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> OrderedScan for MapScan<&'a ZeroMap<K, V, T, H, D>>
impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> OrderedScan for MapScan<&'a ZeroMap<K, V, T, H, D>>
type Key = K
type Row = (K, T)
type Iter = ZeroMapRowIter<'a, K, V, T, H, D>
type KeyIter = ZeroMapKeyIter<'a, K, V, T, H, D>
Source§fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
Takes
self by value (TreeScan/MapScan are Copy) so the returned
iterator is not tied to a temporary &Self borrow — required for
Scope::iter(self) fluent chains under a generic S: OrderedScan.fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter
Source§fn peek_row_key(row: &Self::Row) -> K
fn peek_row_key(row: &Self::Row) -> K
Key of
row without consuming it — used by pagination before handing the row to a closure.Source§impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> OrderedScan for MapScan<&'a VarMap<K, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> OrderedScan for MapScan<&'a VarMap<K, H>>
type Key = K
type Row = (K, ByteView)
type Iter = VarMapRowIter<'a, K, H>
type KeyIter = VarMapKeyIter<'a, K, H>
Source§fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
Takes
self by value (TreeScan/MapScan are Copy) so the returned
iterator is not tied to a temporary &Self borrow — required for
Scope::iter(self) fluent chains under a generic S: OrderedScan.fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter
Source§fn peek_row_key(row: &Self::Row) -> K
fn peek_row_key(row: &Self::Row) -> K
Key of
row without consuming it — used by pagination before handing the row to a closure.Source§impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> OrderedScan for MapScan<&'a VarTypedMap<K, T, C, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> OrderedScan for MapScan<&'a VarTypedMap<K, T, C, H>>
type Key = K
type Row = (K, T)
type Iter = VarTypedMapRowIter<'a, K, T, C, H>
type KeyIter = VarTypedMapKeyIter<'a, K, T, C, H>
Source§fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
fn scan(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::Iter
Takes
self by value (TreeScan/MapScan are Copy) so the returned
iterator is not tied to a temporary &Self borrow — required for
Scope::iter(self) fluent chains under a generic S: OrderedScan.fn scan_keys(self, start: Bound<K>, end: Bound<K>, dir: Dir) -> Self::KeyIter
Source§fn peek_row_key(row: &Self::Row) -> K
fn peek_row_key(row: &Self::Row) -> K
Key of
row without consuming it — used by pagination before handing the row to a closure.Source§impl<K: Key + Send + Sync + Hash + Eq, T: Clone + Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> OwnedRows for MapScan<&TypedMap<K, T, C, H>>
impl<K: Key + Send + Sync + Hash + Eq, T: Clone + Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> OwnedRows for MapScan<&TypedMap<K, T, C, H>>
Source§impl<K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> OwnedRows for MapScan<&ConstMap<K, V, H, D>>
impl<K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> OwnedRows for MapScan<&ConstMap<K, V, H, D>>
Source§impl<K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> OwnedRows for MapScan<&ZeroMap<K, V, T, H, D>>
impl<K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> OwnedRows for MapScan<&ZeroMap<K, V, T, H, D>>
Source§impl<K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> OwnedRows for MapScan<&VarTypedMap<K, T, C, H>>
impl<K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> OwnedRows for MapScan<&VarTypedMap<K, T, C, H>>
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, T: Clone + PartialEq + Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> StrictRows for MapScan<&'a TypedMap<K, T, C, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, T: Clone + PartialEq + Send + Sync, C: Codec<T> + Sync, H: TypedWriteHook<K, T>> StrictRows for MapScan<&'a TypedMap<K, T, C, H>>
Source§type TryRows = InfallibleRows<K, T, OwnedRowsIter<MapScan<&'a TypedMap<K, T, C, H>>, MapRowIter<'a, K, T, C, H>>>
type TryRows = InfallibleRows<K, T, OwnedRowsIter<MapScan<&'a TypedMap<K, T, C, H>>, MapRowIter<'a, K, T, C, H>>>
Strict, owned key/value iterator for a bounded retention pass. Read more
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> StrictRows for MapScan<&'a ConstMap<K, V, H, D>>
impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, H: WriteHook<K>, D: Durability> StrictRows for MapScan<&'a ConstMap<K, V, H, D>>
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> StrictRows for MapScan<&'a ZeroMap<K, V, T, H, D>>
impl<'a, K: Key + Send + Sync + Hash + Eq, const V: usize, T: Copy + IntoBytes + FromBytes + Immutable, H: TypedWriteHook<K, T>, D: Durability> StrictRows for MapScan<&'a ZeroMap<K, V, T, H, D>>
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> StrictRows for MapScan<&'a VarMap<K, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, H: WriteHook<K>> StrictRows for MapScan<&'a VarMap<K, H>>
Source§impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> StrictRows for MapScan<&'a VarTypedMap<K, T, C, H>>
impl<'a, K: Key + Send + Sync + Hash + Eq, T: Send + Sync, C: Codec<T> + Clone + Sync, H: TypedWriteHook<K, T>> StrictRows for MapScan<&'a VarTypedMap<K, T, C, H>>
Auto Trait Implementations§
impl<V> Freeze for MapScan<V>where
V: Freeze,
impl<V> RefUnwindSafe for MapScan<V>where
V: RefUnwindSafe,
impl<V> Send for MapScan<V>where
V: Send,
impl<V> Sync for MapScan<V>where
V: Sync,
impl<V> Unpin for MapScan<V>where
V: Unpin,
impl<V> UnsafeUnpin for MapScan<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for MapScan<V>where
V: UnwindSafe,
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