pub struct Table<'txn, K, V, S = Lexicographical>{ /* private fields */ }Implementations§
Source§impl<'txn, K, V, S> Table<'txn, K, V, S>
impl<'txn, K, V, S> Table<'txn, K, V, S>
pub fn as_raw(&self) -> &Table<'_, SortKey<S>, &'static [u8]>
pub fn as_raw_mut(&mut self) -> &'txn mut Table<'_, SortKey<S>, &'static [u8]>
pub fn first( &self, ) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>
pub fn last( &self, ) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>
pub fn range<'a, Q>( &self, range: impl RangeBounds<Q> + 'a, ) -> Result<Range<'_, K, V, SortKey<S>>, StorageError>
pub fn get<Q>( &self, key: &Q, ) -> Result<Option<AccessGuard<'_, V>>, StorageError>
pub fn insert<KQ, VQ>( &mut self, key: &KQ, value: &VQ, ) -> Result<Option<AccessGuard<'_, V>>, StorageError>
pub fn remove<KQ>( &mut self, key: &KQ, ) -> Result<Option<AccessGuard<'_, V>>, StorageError>
pub fn retain<F>(&mut self, predicate: F) -> Result<(), StorageError>
pub fn retain_in<'a, Q, F>( &mut self, range: impl RangeBounds<Q> + 'a, predicate: F, ) -> Result<(), StorageError>
Trait Implementations§
Source§impl<K, V, S> ReadableTable<K, V, S> for Table<'_, K, V, S>
impl<K, V, S> ReadableTable<K, V, S> for Table<'_, K, V, S>
fn first( &self, ) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>
fn last( &self, ) -> Result<Option<(AccessGuard<'_, K, SortKey<S>>, AccessGuard<'_, V>)>, StorageError>
fn range<'a, Q>( &self, range: impl RangeBounds<Q> + 'a, ) -> Result<Range<'_, K, V, SortKey<S>>, StorageError>
fn get<Q>(&self, key: &Q) -> Result<Option<AccessGuard<'_, V>>, StorageError>
Auto Trait Implementations§
impl<'txn, K, V, S> Freeze for Table<'txn, K, V, S>
impl<'txn, K, V, S = Lexicographical> !RefUnwindSafe for Table<'txn, K, V, S>
impl<'txn, K, V, S> Send for Table<'txn, K, V, S>
impl<'txn, K, V, S> Sync for Table<'txn, K, V, S>
impl<'txn, K, V, S> Unpin for Table<'txn, K, V, S>
impl<'txn, K, V, S = Lexicographical> !UnwindSafe for Table<'txn, K, V, S>
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