Struct sqlite_collections::ds::map::Map
source · pub struct Map<'db, 'tbl, K, V, C>where
K: Format,
V: Format,
C: Savepointable,{ /* private fields */ }Expand description
Deterministic store set.
Implementations§
source§impl<'db, 'tbl, K, V, C> Map<'db, 'tbl, K, V, C>where
K: Format,
V: Format,
C: Savepointable,
impl<'db, 'tbl, K, V, C> Map<'db, 'tbl, K, V, C>where K: Format, V: Format, C: Savepointable,
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 get(&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>>
Auto Trait Implementations§
impl<'db, 'tbl, K, V, C> RefUnwindSafe for Map<'db, 'tbl, K, V, C>where C: RefUnwindSafe, K: RefUnwindSafe, V: RefUnwindSafe,
impl<'db, 'tbl, K, V, C> Send for Map<'db, 'tbl, K, V, C>where C: Send, K: Send, V: Send,
impl<'db, 'tbl, K, V, C> Sync for Map<'db, 'tbl, K, V, C>where C: Sync, K: Sync, V: Sync,
impl<'db, 'tbl, K, V, C> Unpin for Map<'db, 'tbl, K, V, C>where C: Unpin, K: Unpin, V: Unpin,
impl<'db, 'tbl, K, V, C> UnwindSafe for Map<'db, 'tbl, K, V, C>where C: UnwindSafe, K: UnwindSafe, V: UnwindSafe,
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