Struct redb::ReadOnlyTable
source · Expand description
A read-only table
Trait Implementations
sourceimpl<'txn, K: RedbKey + ?Sized, V: RedbValue + ?Sized> ReadableTable<K, V> for ReadOnlyTable<'txn, K, V>
impl<'txn, K: RedbKey + ?Sized, V: RedbValue + ?Sized> ReadableTable<K, V> for ReadOnlyTable<'txn, K, V>
sourcefn get<'a, 'b: 'a, AK>(
&self,
key: &'a AK
) -> Result<Option<V::SelfType<'_>>, Error>where
K: 'b,
AK: Borrow<K::RefBaseType<'b>> + ?Sized,
fn get<'a, 'b: 'a, AK>(
&self,
key: &'a AK
) -> Result<Option<V::SelfType<'_>>, Error>where
K: 'b,
AK: Borrow<K::RefBaseType<'b>> + ?Sized,
Returns the value corresponding to the given key
Auto Trait Implementations
impl<'txn, K: ?Sized, V: ?Sized> RefUnwindSafe for ReadOnlyTable<'txn, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'txn, K: ?Sized, V: ?Sized> Send for ReadOnlyTable<'txn, K, V>where
K: Send,
V: Send,
impl<'txn, K: ?Sized, V: ?Sized> Sync for ReadOnlyTable<'txn, K, V>where
K: Sync,
V: Sync,
impl<'txn, K: ?Sized, V: ?Sized> Unpin for ReadOnlyTable<'txn, K, V>where
K: Unpin,
V: Unpin,
impl<'txn, K: ?Sized, V: ?Sized> UnwindSafe for ReadOnlyTable<'txn, K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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