Struct redb::ReadOnlyMultimapTable
source · pub struct ReadOnlyMultimapTable<'txn, K: RedbKey + ?Sized, V: RedbKey + ?Sized> { /* private fields */ }
Expand description
A read-only multimap table
Trait Implementations
sourceimpl<'txn, K: RedbKey + ?Sized, V: RedbKey + ?Sized> ReadableMultimapTable<K, V> for ReadOnlyMultimapTable<'txn, K, V>
impl<'txn, K: RedbKey + ?Sized, V: RedbKey + ?Sized> ReadableMultimapTable<K, V> for ReadOnlyMultimapTable<'txn, K, V>
sourcefn get<'a>(
&'a self,
key: impl Borrow<K::RefBaseType<'a>>
) -> Result<MultimapValueIter<'a, V>, Error>
fn get<'a>(
&'a self,
key: impl Borrow<K::RefBaseType<'a>>
) -> Result<MultimapValueIter<'a, V>, Error>
Returns an iterator over all values for the given key. Values are in ascending order.
fn range<'a, T: RangeBounds<&'a K::RefBaseType<'a>> + 'a>(
&'a self,
range: T
) -> Result<MultimapRangeIter<'a, K, V>, Error>
fn len(&self) -> Result<usize, Error>
fn is_empty(&self) -> Result<bool, Error>
Auto Trait Implementations
impl<'txn, K: ?Sized, V: ?Sized> RefUnwindSafe for ReadOnlyMultimapTable<'txn, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'txn, K: ?Sized, V: ?Sized> Send for ReadOnlyMultimapTable<'txn, K, V>where
K: Send,
V: Send,
impl<'txn, K: ?Sized, V: ?Sized> Sync for ReadOnlyMultimapTable<'txn, K, V>where
K: Sync,
V: Sync,
impl<'txn, K: ?Sized, V: ?Sized> Unpin for ReadOnlyMultimapTable<'txn, K, V>where
K: Unpin,
V: Unpin,
impl<'txn, K: ?Sized, V: ?Sized> UnwindSafe for ReadOnlyMultimapTable<'txn, K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more