Trait redb::ReadableMultimapTable
source · pub trait ReadableMultimapTable<K: Key + 'static, V: Key + 'static>: ReadableTableMetadata {
// Required methods
fn get<'a>(
&self,
key: impl Borrow<K::SelfType<'a>>
) -> Result<MultimapValue<'_, V>, StorageError>
where K: 'a;
fn range<'a, KR>(
&self,
range: impl RangeBounds<KR> + 'a
) -> Result<MultimapRange<'_, K, V>, StorageError>
where K: 'a,
KR: Borrow<K::SelfType<'a>> + 'a;
// Provided method
fn iter(&self) -> Result<MultimapRange<'_, K, V>, StorageError> { ... }
}Required Methods§
sourcefn 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>
Provided Methods§
sourcefn 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.
Object Safety§
This trait is not object safe.