pub struct RwLen<'db, 'txn> { /* private fields */ }
Implementations§
Source§impl RwLen<'_, '_>
impl RwLen<'_, '_>
Sourcepub fn primary<T: Input>(&self) -> Result<u64>
pub fn primary<T: Input>(&self) -> Result<u64>
Get the number of values.
Same as RLen::primary()
.
Sourcepub fn secondary<T: Input>(
&self,
_key_def: impl KeyDefinition<DatabaseSecondaryKeyOptions>,
) -> Result<Option<T>>
pub fn secondary<T: Input>( &self, _key_def: impl KeyDefinition<DatabaseSecondaryKeyOptions>, ) -> Result<Option<T>>
Get the number of values by secondary key.
Same as RLen::secondary()
.
Auto Trait Implementations§
impl<'db, 'txn> Freeze for RwLen<'db, 'txn>
impl<'db, 'txn> !RefUnwindSafe for RwLen<'db, 'txn>
impl<'db, 'txn> Send for RwLen<'db, 'txn>
impl<'db, 'txn> Sync for RwLen<'db, 'txn>
impl<'db, 'txn> Unpin for RwLen<'db, 'txn>
impl<'db, 'txn> !UnwindSafe for RwLen<'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