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(
&self,
key: &K
) -> Result<Option<<<V as RedbValue>::View as WithLifetime<'_>>::Out>, Error>
fn get(
&self,
key: &K
) -> Result<Option<<<V as RedbValue>::View as WithLifetime<'_>>::Out>, Error>
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 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