pub fn delete_range<K: AsRef<[u8]>>(&mut self, from: K, to: K) -> Result<(), Error> {
        let (start_key, end_key) = (from.as_ref(), to.as_ref());

        unsafe {
            ffi::rocksdb_writebatch_delete_range(
                self.inner,
                start_key.as_ptr() as *const c_char,
                start_key.len() as size_t,
                end_key.as_ptr() as *const c_char,
                end_key.len() as size_t,
            );
            Ok(())
        }
    }
/// Remove database entries from start key to end key.
///
/// Removes the database entries in the range ["begin_key", "end_key"), i.e.,
/// including "begin_key" and excluding "end_key". It is not an error if no
/// keys exist in the range ["begin_key", "end_key").
Remove database entries from start key to end key.
Remove database entries from start key to end key .
pub fn delete_range<K: AsRef<[u8]>>(&mut self, from: K, to: K) -> Result<(), Error> {
        let (start_key, end_key) = (from.as_ref(), to.as_ref());
        unsafe {
            ffi::rocksdb_writebatch_delete_range(
                self.inner,
                start_key.as_ptr() as *const c_char,
                start_key.len() as size_t,
                end_key.as_ptr() as *const c_char,
                end_key.len() as size_t,
            );
            Ok(())
        }
    }
pub fn delete_range < K : AsRef < [ u8 ] > > ( & mut self , from : K , to : K ) -> Result < ( ) , Error > { let ( start_key , end_key ) = ( from . as_ref ( ) , to . as_ref ( ) ) ; unsafe { ffi :: rocksdb_writebatch_delete_range ( self . inner , start_key . as_ptr ( ) as * const c_char , start_key . len ( ) as size_t , end_key . as_ptr ( ) as * const c_char , end_key . len ( ) as size_t , ) ; Ok ( ( ) ) } }
Remove database entries from start key to end key.
Remove database entries from start key to end key .
&mut self
from
K
to
K
&mut self
from
K
to
K