pub struct LevelDBIteratorWrapper { /* private fields */ }
Expand description
| A internal wrapper class with an interface | similar to Iterator that caches the valid() and | key() results for an underlying iterator. | | This can help avoid virtual function calls and | also gives better cache locality.
Implementations§
Source§impl LevelDBIteratorWrapper
impl LevelDBIteratorWrapper
pub fn new(iter: *mut LevelDBIterator) -> Self
pub fn iter(&self) -> *mut LevelDBIterator
Sourcepub fn set(&mut self, iter: *mut LevelDBIterator)
pub fn set(&mut self, iter: *mut LevelDBIterator)
| Takes ownership of “iter” and will delete | it when destroyed, or when Set() is invoked | again. |
pub fn key(&self) -> Slice
pub fn value(&self) -> Slice
pub fn next(&mut self)
pub fn prev(&mut self)
pub fn seek(&mut self, k: &Slice)
pub fn seek_to_first(&mut self)
pub fn seek_to_last(&mut self)
pub fn update(&mut self)
Trait Implementations§
Source§impl Default for LevelDBIteratorWrapper
impl Default for LevelDBIteratorWrapper
Auto Trait Implementations§
impl Freeze for LevelDBIteratorWrapper
impl !RefUnwindSafe for LevelDBIteratorWrapper
impl !Send for LevelDBIteratorWrapper
impl !Sync for LevelDBIteratorWrapper
impl Unpin for LevelDBIteratorWrapper
impl !UnwindSafe for LevelDBIteratorWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more