[−][src]Struct lmdb::RwCursor
A read-write cursor for navigating items within a database.
Methods
impl<'txn> RwCursor<'txn>
[src]
pub fn put<K, D>(&mut self, key: &K, data: &D, flags: WriteFlags) -> Result<()> where
K: AsRef<[u8]>,
D: AsRef<[u8]>,
[src]
K: AsRef<[u8]>,
D: AsRef<[u8]>,
Puts a key/data pair into the database. The cursor will be positioned at the new data item, or on failure usually near it.
pub fn del(&mut self, flags: WriteFlags) -> Result<()>
[src]
Deletes the current key/data pair.
Flags
WriteFlags::NO_DUP_DATA
may be used to delete all data items for the
current key, if the database was opened with DatabaseFlags::DUP_SORT
.
Trait Implementations
impl<'txn> Cursor<'txn> for RwCursor<'txn>
[src]
fn cursor(&self) -> *mut MDB_cursor
[src]
fn get(
&self,
key: Option<&[u8]>,
data: Option<&[u8]>,
op: c_uint
) -> Result<(Option<&'txn [u8]>, &'txn [u8])>
[src]
&self,
key: Option<&[u8]>,
data: Option<&[u8]>,
op: c_uint
) -> Result<(Option<&'txn [u8]>, &'txn [u8])>
ⓘImportant traits for Iter<'txn>fn iter(&mut self) -> Iter<'txn>
[src]
ⓘImportant traits for Iter<'txn>
ⓘImportant traits for Iter<'txn>fn iter_start(&mut self) -> Iter<'txn>
[src]
ⓘImportant traits for Iter<'txn>
ⓘImportant traits for Iter<'txn>fn iter_from<K>(&mut self, key: K) -> Iter<'txn> where
K: AsRef<[u8]>,
[src]
ⓘImportant traits for Iter<'txn>
K: AsRef<[u8]>,
ⓘImportant traits for IterDup<'txn>fn iter_dup(&mut self) -> IterDup<'txn>
[src]
ⓘImportant traits for IterDup<'txn>
ⓘImportant traits for IterDup<'txn>fn iter_dup_start(&mut self) -> IterDup<'txn>
[src]
ⓘImportant traits for IterDup<'txn>
ⓘImportant traits for IterDup<'txn>fn iter_dup_from<K>(&mut self, key: K) -> IterDup<'txn> where
K: AsRef<[u8]>,
[src]
ⓘImportant traits for IterDup<'txn>
K: AsRef<[u8]>,
ⓘImportant traits for Iter<'txn>fn iter_dup_of<K>(&mut self, key: K) -> Iter<'txn> where
K: AsRef<[u8]>,
[src]
ⓘImportant traits for Iter<'txn>
K: AsRef<[u8]>,
impl<'txn> Drop for RwCursor<'txn>
[src]
impl<'txn> Debug for RwCursor<'txn>
[src]
Auto Trait Implementations
impl<'txn> !Send for RwCursor<'txn>
impl<'txn> Unpin for RwCursor<'txn>
impl<'txn> !Sync for RwCursor<'txn>
impl<'txn> UnwindSafe for RwCursor<'txn>
impl<'txn> RefUnwindSafe for RwCursor<'txn>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,