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>>;
fn range<'a, KR>(
&self,
range: impl RangeBounds<KR> + 'a,
) -> Result<MultimapRange<'_, K, V>>
where KR: Borrow<K::SelfType<'a>> + 'a;
// Provided method
fn iter(&self) -> Result<MultimapRange<'_, K, V>> { ... }
}
Required Methods§
Sourcefn get<'a>(
&self,
key: impl Borrow<K::SelfType<'a>>,
) -> Result<MultimapValue<'_, V>>
fn get<'a>( &self, key: impl Borrow<K::SelfType<'a>>, ) -> Result<MultimapValue<'_, V>>
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>>
Provided Methods§
Sourcefn iter(&self) -> Result<MultimapRange<'_, K, V>>
fn iter(&self) -> Result<MultimapRange<'_, K, V>>
Returns an double-ended iterator over all elements in the table. Values are in ascending order.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.