Struct native_db::transaction::query::RwLen
source · 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