Struct redb::ReadOnlyTable
source · Expand description
A read-only table
Trait Implementations§
source§impl<'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>
source§fn get<'a, 'b: 'a, AK>(
&self,
key: &'a AK
) -> Result<Option<AccessGuard<'_, V>>, Error>where
K: 'b,
AK: Borrow<K::RefBaseType<'b>> + ?Sized,
fn get<'a, 'b: 'a, AK>(
&self,
key: &'a AK
) -> Result<Option<AccessGuard<'_, V>>, Error>where
K: 'b,
AK: Borrow<K::RefBaseType<'b>> + ?Sized,
Returns the value corresponding to the given key