pub struct ReadOnlyMultimapTable<K: Key + 'static, V: Key + 'static> { /* private fields */ }Expand description
A read-only multimap table
Implementations§
Source§impl<K: Key + 'static, V: Key + 'static> ReadOnlyMultimapTable<K, V>
impl<K: Key + 'static, V: Key + 'static> ReadOnlyMultimapTable<K, V>
Sourcepub fn get<'a>(
&self,
key: impl Borrow<K::SelfType<'a>>,
) -> Result<MultimapValue<'static, V>>
pub fn get<'a>( &self, key: impl Borrow<K::SelfType<'a>>, ) -> Result<MultimapValue<'static, V>>
This method is like ReadableMultimapTable::get(), but the iterator is reference counted and keeps the transaction
alive until it is dropped.
Sourcepub fn get_owned<'a>(
&self,
key: impl Borrow<K::SelfType<'a>>,
) -> Result<OwnedMultimapValue<V>>
pub fn get_owned<'a>( &self, key: impl Borrow<K::SelfType<'a>>, ) -> Result<OwnedMultimapValue<V>>
This method is like ReadableMultimapTable::get(), but the returned iterator is
reference counted and keeps the transaction alive until it is dropped, as do the
OwnedAccessGuards it yields.
Sourcepub fn range<'a, KR>(
&self,
range: impl RangeBounds<KR>,
) -> Result<MultimapRange<'static, K, V>>
pub fn range<'a, KR>( &self, range: impl RangeBounds<KR>, ) -> Result<MultimapRange<'static, K, V>>
This method is like ReadableMultimapTable::range(), but the iterator is reference counted and keeps the transaction
alive until it is dropped.
Sourcepub fn range_owned<'a, KR>(
&self,
range: impl RangeBounds<KR>,
) -> Result<OwnedMultimapRange<K, V>>
pub fn range_owned<'a, KR>( &self, range: impl RangeBounds<KR>, ) -> Result<OwnedMultimapRange<K, V>>
This method is like ReadableMultimapTable::range(), but the returned iterator is
reference counted and keeps the transaction alive until it is dropped, as do the entries
it yields.
Trait Implementations§
Source§impl<K: Key + 'static, V: Key + 'static> MultimapTableHandle for ReadOnlyMultimapTable<K, V>
impl<K: Key + 'static, V: Key + 'static> MultimapTableHandle for ReadOnlyMultimapTable<K, V>
Source§impl<K: Key + 'static, V: Key + 'static> ReadableMultimapTable<K, V> for ReadOnlyMultimapTable<K, V>
impl<K: Key + 'static, V: Key + 'static> ReadableMultimapTable<K, V> for ReadOnlyMultimapTable<K, V>
Source§fn 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.