pub struct RwCursor<'txn> { /* private fields */ }
Expand description
A read-write cursor for navigating items within a database.
Implementations§
Trait Implementations§
Source§impl<'txn> Cursor<'txn> for RwCursor<'txn>
impl<'txn> Cursor<'txn> for RwCursor<'txn>
Source§fn cursor(&self) -> *mut MDB_cursor
fn cursor(&self) -> *mut MDB_cursor
Returns a raw pointer to the underlying LMDB cursor. Read more
Source§fn get(
&self,
key: Option<&[u8]>,
data: Option<&[u8]>,
op: c_uint,
) -> Result<(Option<&'txn [u8]>, &'txn [u8])>
fn get( &self, key: Option<&[u8]>, data: Option<&[u8]>, op: c_uint, ) -> Result<(Option<&'txn [u8]>, &'txn [u8])>
Retrieves a key/data pair from the cursor. Depending on the cursor op,
the current key may be returned.
Source§fn iter(&mut self) -> Iter<'txn> ⓘ
fn iter(&mut self) -> Iter<'txn> ⓘ
Iterate over database items. The iterator will begin with item next
after the cursor, and continue until the end of the database. For new
cursors, the iterator will begin with the first item in the database. Read more
Source§fn iter_start(&mut self) -> Iter<'txn> ⓘ
fn iter_start(&mut self) -> Iter<'txn> ⓘ
Iterate over database items starting from the beginning of the database. Read more
Source§fn iter_from<K>(&mut self, key: K) -> Iter<'txn> ⓘ
fn iter_from<K>(&mut self, key: K) -> Iter<'txn> ⓘ
Iterate over database items starting from the given key. Read more
Source§fn iter_dup(&mut self) -> IterDup<'txn> ⓘ
fn iter_dup(&mut self) -> IterDup<'txn> ⓘ
Iterate over duplicate database items. The iterator will begin with the
item next after the cursor, and continue until the end of the database.
Each item will be returned as an iterator of its duplicates.
Source§fn iter_dup_start(&mut self) -> IterDup<'txn> ⓘ
fn iter_dup_start(&mut self) -> IterDup<'txn> ⓘ
Iterate over duplicate database items starting from the beginning of the
database. Each item will be returned as an iterator of its duplicates.
Source§fn iter_dup_from<K>(&mut self, key: K) -> IterDup<'txn> ⓘ
fn iter_dup_from<K>(&mut self, key: K) -> IterDup<'txn> ⓘ
Iterate over duplicate items in the database starting from the given
key. Each item will be returned as an iterator of its duplicates.
Auto Trait Implementations§
impl<'txn> Freeze for RwCursor<'txn>
impl<'txn> RefUnwindSafe for RwCursor<'txn>
impl<'txn> !Send for RwCursor<'txn>
impl<'txn> !Sync for RwCursor<'txn>
impl<'txn> Unpin for RwCursor<'txn>
impl<'txn> UnwindSafe for RwCursor<'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