Skip to main content

DupWriteCursor

Trait DupWriteCursor 

Source
pub trait DupWriteCursor<'txn, T: DupTable>: WriteCursor<'txn, T> + DupReadCursor<'txn, T> {
    // Required methods
    fn append_dup(&mut self, key: &T::Key, value: &T::Value);
    fn remove_all_dup(&mut self);
}

Required Methods§

Source

fn append_dup(&mut self, key: &T::Key, value: &T::Value)

Appends a key/value pair to the end of the database. This operation fails if the key is less than the last key.

Source

fn remove_all_dup(&mut self)

Removes all duplicate values for the current key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'txn, T: DupTable> DupWriteCursor<'txn, T> for MdbxWriteCursor<'txn, T>