Struct redb::ReadOnlyTable
source · pub struct ReadOnlyTable<'txn, K: RedbKey + 'static, V: RedbValue + 'static> { /* private fields */ }
Expand description
A read-only table
Trait Implementations§
source§impl<'txn, K: RedbKey + 'static, V: RedbValue + 'static> ReadableTable<K, V> for ReadOnlyTable<'txn, K, V>
impl<'txn, K: RedbKey + 'static, V: RedbValue + 'static> ReadableTable<K, V> for ReadOnlyTable<'txn, K, V>
source§fn get<'a>(
&self,
key: impl Borrow<K::SelfType<'a>>
) -> Result<Option<AccessGuard<'_, V>>, Error>where
K: 'a,
fn get<'a>( &self, key: impl Borrow<K::SelfType<'a>> ) -> Result<Option<AccessGuard<'_, V>>, Error>where K: 'a,
Returns the value corresponding to the given key
Auto Trait Implementations§
impl<'txn, K, V> RefUnwindSafe for ReadOnlyTable<'txn, K, V>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<'txn, K, V> Send for ReadOnlyTable<'txn, K, V>where K: Send, V: Send,
impl<'txn, K, V> Sync for ReadOnlyTable<'txn, K, V>where K: Sync, V: Sync,
impl<'txn, K, V> Unpin for ReadOnlyTable<'txn, K, V>where K: Unpin, V: Unpin,
impl<'txn, K, V> UnwindSafe for ReadOnlyTable<'txn, 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