Implementations
sourceimpl<'s, 't, K: RedbKey + ?Sized, V: RedbValue + ?Sized> Table<'s, 't, K, V>
impl<'s, 't, K: RedbKey + ?Sized, V: RedbValue + ?Sized> Table<'s, 't, K, V>
pub fn insert(&mut self, key: &K, value: &V) -> Result<(), Error>
sourcepub fn insert_reserve(
&mut self,
key: &K,
value_length: usize
) -> Result<AccessGuardMut<'_>, Error>
pub fn insert_reserve(
&mut self,
key: &K,
value_length: usize
) -> Result<AccessGuardMut<'_>, Error>
Reserve space to insert a key-value pair The returned reference will have length equal to value_length
pub fn remove(&mut self, key: &K) -> Result<Option<AccessGuard<'_, V>>, Error>
Trait Implementations
sourceimpl<'s, 't, K: RedbKey + ?Sized, V: RedbValue + ?Sized> ReadableTable<K, V> for Table<'s, 't, K, V>
impl<'s, 't, K: RedbKey + ?Sized, V: RedbValue + ?Sized> ReadableTable<K, V> for Table<'s, 't, K, V>
fn get(
&self,
key: &K
) -> Result<Option<<<V as RedbValue>::View as WithLifetime<'_>>::Out>, Error>
fn range<'a, T: RangeBounds<KR>, KR: Borrow<K> + 'a>(
&'a self,
range: T
) -> Result<RangeIter<'_, K, V>, Error>
fn len(&self) -> Result<usize, Error>
fn is_empty(&self) -> Result<bool, Error>
Auto Trait Implementations
impl<'s, 't, K, V> !RefUnwindSafe for Table<'s, 't, K, V>
impl<'s, 't, K, V> !Send for Table<'s, 't, K, V>
impl<'s, 't, K, V> !Sync for Table<'s, 't, K, V>
impl<'s, 't, K: ?Sized, V: ?Sized> Unpin for Table<'s, 't, K, V> where
K: Unpin,
V: Unpin,
's: 't,
impl<'s, 't, K, V> !UnwindSafe for Table<'s, 't, K, V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more