pub struct TypedOptions<'env, K, V> { /* private fields */ }Expand description
Options for generic typed databases (serialized keys and values)
Implementations§
Source§impl<K, V> TypedOptions<'_, K, V>where
K: Serialize + for<'de> Deserialize<'de> + Clone + Default + 'static,
V: Serialize + for<'de> Deserialize<'de> + 'static,
impl<K, V> TypedOptions<'_, K, V>where
K: Serialize + for<'de> Deserialize<'de> + Clone + Default + 'static,
V: Serialize + for<'de> Deserialize<'de> + 'static,
Sourcepub fn create(
self,
txn: &mut RwTxn<'_>,
) -> Result<ScopedDatabase<K, V>, ScopedDbError>
pub fn create( self, txn: &mut RwTxn<'_>, ) -> Result<ScopedDatabase<K, V>, ScopedDbError>
Create the database with the current transaction
Auto Trait Implementations§
impl<'env, K, V> Freeze for TypedOptions<'env, K, V>
impl<'env, K, V> RefUnwindSafe for TypedOptions<'env, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'env, K, V> Send for TypedOptions<'env, K, V>
impl<'env, K, V> Sync for TypedOptions<'env, K, V>
impl<'env, K, V> Unpin for TypedOptions<'env, K, V>
impl<'env, K, V> UnsafeUnpin for TypedOptions<'env, K, V>
impl<'env, K, V> UnwindSafe for TypedOptions<'env, K, V>where
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