pub struct RwGet<'db, 'txn> { /* private fields */ }
Implementations§
Source§impl RwGet<'_, '_>
impl RwGet<'_, '_>
Sourcepub fn primary<T: Input>(&self, key: impl InnerKeyValue) -> Result<Option<T>>
pub fn primary<T: Input>(&self, key: impl InnerKeyValue) -> Result<Option<T>>
Get a value from the database by primary key.
Same as RGet::primary()
.
Sourcepub fn secondary<T: Input>(
&self,
key_def: impl KeyDefinition<DatabaseSecondaryKeyOptions>,
key: impl InnerKeyValue,
) -> Result<Option<T>>
pub fn secondary<T: Input>( &self, key_def: impl KeyDefinition<DatabaseSecondaryKeyOptions>, key: impl InnerKeyValue, ) -> Result<Option<T>>
Get a value from the database by secondary key.
Same as RGet::secondary()
.
Auto Trait Implementations§
impl<'db, 'txn> Freeze for RwGet<'db, 'txn>
impl<'db, 'txn> !RefUnwindSafe for RwGet<'db, 'txn>
impl<'db, 'txn> Send for RwGet<'db, 'txn>
impl<'db, 'txn> Sync for RwGet<'db, 'txn>
impl<'db, 'txn> Unpin for RwGet<'db, 'txn>
impl<'db, 'txn> !UnwindSafe for RwGet<'db, 'txn>
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