pub fn value(&self) -> Option<&[u8]> {
        if self.valid() {
            // Safety Note: This is safe as all methods that may invalidate the buffer returned
            // take `&mut self`, so borrow checker will prevent use of buffer after seek.
            unsafe {
                let mut val_len: size_t = 0;
                let val_len_ptr: *mut size_t = &mut val_len;
                let val_ptr = ffi::rocksdb_iter_value(self.inner, val_len_ptr) as *const c_uchar;

                Some(slice::from_raw_parts(val_ptr, val_len as usize))
            }
        } else {
            None
        }
    }
/// Returns a slice of the current value.
Returns a slice of the current value.
Returns a slice of the current value .
pub fn value(&self) -> Option<&[u8]> {
        if self.valid() {
            // Safety Note: This is safe as all methods that may invalidate the buffer returned
            // take `&mut self`, so borrow checker will prevent use of buffer after seek.
            unsafe {
                let mut val_len: size_t = 0;
                let val_len_ptr: *mut size_t = &mut val_len;
                let val_ptr = ffi::rocksdb_iter_value(self.inner, val_len_ptr) as *const c_uchar;
                Some(slice::from_raw_parts(val_ptr, val_len as usize))
            }
        } else {
            None
        }
    }
pub fn value ( & self ) -> Option < & [ u8 ] > { if self . valid ( ) { // Safety Note: This is safe as all methods that may invalidate the buffer returned // take `&mut self`, so borrow checker will prevent use of buffer after seek. unsafe { let mut val_len : size_t = 0 ; let val_len_ptr : * mut size_t = & mut val_len ; let val_ptr = ffi :: rocksdb_iter_value ( self . inner , val_len_ptr ) as * const c_uchar ; Some ( slice :: from_raw_parts ( val_ptr , val_len as usize ) ) } } else { None } }
Returns a slice of the current value.
Returns a slice of the current value .
&self
&self