pub struct ReadOnlyMultimapTable<'txn, K: RedbKey + 'static, V: RedbKey + 'static> { /* private fields */ }
Expand description
A read-only multimap table
Trait Implementations§
Source§impl<'txn, K: RedbKey + 'static, V: RedbKey + 'static> ReadableMultimapTable<K, V> for ReadOnlyMultimapTable<'txn, K, V>
impl<'txn, K: RedbKey + 'static, V: RedbKey + 'static> ReadableMultimapTable<K, V> for ReadOnlyMultimapTable<'txn, K, V>
Source§fn get<'a>(
&self,
key: impl Borrow<K::SelfType<'a>>,
) -> Result<MultimapValue<'_, V>, StorageError>where
K: 'a,
fn get<'a>(
&self,
key: impl Borrow<K::SelfType<'a>>,
) -> Result<MultimapValue<'_, V>, StorageError>where
K: 'a,
Returns an iterator over all values for the given key. Values are in ascending order.
fn range<'a, KR>( &self, range: impl RangeBounds<KR> + 'a, ) -> Result<MultimapRange<'_, K, V>, StorageError>
Source§fn stats(&self) -> Result<TableStats, StorageError>
fn stats(&self) -> Result<TableStats, StorageError>
Retrieves information about storage usage for the table
fn len(&self) -> Result<u64, StorageError>
fn is_empty(&self) -> Result<bool, StorageError>
Source§fn iter(&self) -> Result<MultimapRange<'_, K, V>, StorageError>
fn iter(&self) -> Result<MultimapRange<'_, K, V>, StorageError>
Returns an double-ended iterator over all elements in the table. Values are in ascending
order.
Auto Trait Implementations§
impl<'txn, K, V> Freeze for ReadOnlyMultimapTable<'txn, K, V>
impl<'txn, K, V> !RefUnwindSafe for ReadOnlyMultimapTable<'txn, K, V>
impl<'txn, K, V> Send for ReadOnlyMultimapTable<'txn, K, V>
impl<'txn, K, V> Sync for ReadOnlyMultimapTable<'txn, K, V>
impl<'txn, K, V> Unpin for ReadOnlyMultimapTable<'txn, K, V>
impl<'txn, K, V> !UnwindSafe for ReadOnlyMultimapTable<'txn, K, V>
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