pub fn iterate(&self, callbacks: &mut dyn WriteBatchIterator) {
        let state = Box::into_raw(Box::new(callbacks));
        unsafe {
            ffi::rocksdb_writebatch_iterate(
                self.inner,
                state as *mut c_void,
                Some(writebatch_put_callback),
                Some(writebatch_delete_callback),
            );
            // we must manually set the raw box free since there is no
            // associated "destroy" callback for this object
            Box::from_raw(state);
        }
    }
/// Iterate the put and delete operations within this write batch. Note that
/// this does _not_ return an `Iterator` but instead will invoke the `put()`
/// and `delete()` member functions of the provided `WriteBatchIterator`
/// trait implementation.
Iterate the put and delete operations within this write batch.
Iterate the put and delete operations within this write batch .
pub fn iterate(&self, callbacks: &mut dyn WriteBatchIterator) {
        let state = Box::into_raw(Box::new(callbacks));
        unsafe {
            ffi::rocksdb_writebatch_iterate(
                self.inner,
                state as *mut c_void,
                Some(writebatch_put_callback),
                Some(writebatch_delete_callback),
            );
            // we must manually set the raw box free since there is no
            // associated "destroy" callback for this object
            Box::from_raw(state);
        }
    }
pub fn iterate ( & self , callbacks : & mut dyn WriteBatchIterator ) { let state = Box :: into_raw ( Box :: new ( callbacks ) ) ; unsafe { ffi :: rocksdb_writebatch_iterate ( self . inner , state as * mut c_void , Some ( writebatch_put_callback ) , Some ( writebatch_delete_callback ) , ) ; // we must manually set the raw box free since there is no // associated "destroy" callback for this object Box :: from_raw ( state ) ; } }
Iterate the put and delete operations within this write batch.
Iterate the put and delete operations within this write batch .
&self
callbacks
&mut dyn WriteBatchIterator
&self
callbacks
&mut dyn WriteBatchIterator