pub struct Map<'db, 'tbl, K, V, C>{ /* private fields */ }Expand description
Deterministic store set.
Implementations§
Source§impl<'db, 'tbl, K, V, C> Map<'db, 'tbl, K, V, C>
impl<'db, 'tbl, K, V, C> Map<'db, 'tbl, K, V, C>
pub fn open_with_config( connection: C, config: Config<'db, 'tbl>, ) -> Result<Self, OpenError>
Sourcepub fn unchecked_open_with_config(
connection: C,
config: Config<'db, 'tbl>,
) -> Self
pub fn unchecked_open_with_config( connection: C, config: Config<'db, 'tbl>, ) -> Self
Open a set without creating it or checking if it exists. This is safe if you call a safe open in (or under) the same transaction or savepoint beforehand.
pub fn insert( &mut self, key: &K::In, value: &V::In, ) -> Result<Option<V::Out>, Error<K, V>>
pub fn len(&mut self) -> Result<u64, Error<K, V>>
pub fn is_empty(&mut self) -> Result<bool, Error<K, V>>
pub fn get(&mut self, key: &K::In) -> Result<Option<V::Out>, Error<K, V>>
pub fn remove(&mut self, key: &K::In) -> Result<Option<V::Out>, Error<K, V>>
pub fn contains_key(&mut self, key: &K::In) -> Result<bool, Error<K, V>>
pub fn clear(&mut self) -> Result<(), Error<K, V>>
pub fn iter( &mut self, ) -> Result<KeyValueIter<'db, 'tbl, K, V, Savepoint<'_>>, Error<K, V>>
pub fn keys( &mut self, ) -> Result<KeyIter<'db, 'tbl, K, V, Savepoint<'_>>, Error<K, V>>
pub fn values( &mut self, ) -> Result<ValueIter<'db, 'tbl, K, V, Savepoint<'_>>, Error<K, V>>
Auto Trait Implementations§
impl<'db, 'tbl, K, V, C> Freeze for Map<'db, 'tbl, K, V, C>where
C: Freeze,
impl<'db, 'tbl, K, V, C> RefUnwindSafe for Map<'db, 'tbl, K, V, C>
impl<'db, 'tbl, K, V, C> Send for Map<'db, 'tbl, K, V, C>
impl<'db, 'tbl, K, V, C> Sync for Map<'db, 'tbl, K, V, C>
impl<'db, 'tbl, K, V, C> Unpin for Map<'db, 'tbl, K, V, C>
impl<'db, 'tbl, K, V, C> UnwindSafe for Map<'db, 'tbl, K, V, C>
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