pub struct LevelDBFilterPolicy { /* private fields */ }Expand description
Trait Implementations§
Source§impl CreateFilter for LevelDBFilterPolicy
impl CreateFilter for LevelDBFilterPolicy
Source§fn create_filter(&self, keys: *const Slice, n: i32, dst: *mut String)
fn create_filter(&self, keys: *const Slice, n: i32, dst: *mut String)
| keys[0,n-1] contains a list of keys
| (potentially with duplicates) that are
| ordered according to the user supplied
| comparator. Append a filter that summarizes
| keys[0,n-1] to *dst.
|
| Warning: do not change the initial contents
| of *dst. Instead, append the newly
| constructed filter to *dst.
Source§impl Drop for LevelDBFilterPolicy
impl Drop for LevelDBFilterPolicy
Source§impl KeyMayMatch for LevelDBFilterPolicy
impl KeyMayMatch for LevelDBFilterPolicy
Source§fn key_may_match(&self, key_: &Slice, filter: &Slice) -> bool
fn key_may_match(&self, key_: &Slice, filter: &Slice) -> bool
| “filter” contains the data appended by
| a preceding call to CreateFilter() on this
| class. This method must return true if the
| key was in the list of keys passed to
| CreateFilter().
|
| This method may return true or false if the
| key was not on the list, but it should aim to
| return false with a high probability.
impl FilterPolicy for LevelDBFilterPolicy
Auto Trait Implementations§
impl Freeze for LevelDBFilterPolicy
impl RefUnwindSafe for LevelDBFilterPolicy
impl !Send for LevelDBFilterPolicy
impl !Sync for LevelDBFilterPolicy
impl Unpin for LevelDBFilterPolicy
impl UnwindSafe for LevelDBFilterPolicy
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