Struct rusty_leveldb_arc::SkipMap
source · pub struct SkipMap { /* private fields */ }
Implementations§
source§impl SkipMap
impl SkipMap
sourcepub fn new_memtable_map(cmp: Arc<Box<dyn Cmp>>) -> SkipMap
pub fn new_memtable_map(cmp: Arc<Box<dyn Cmp>>) -> SkipMap
Returns a SkipMap that wraps the comparator inside a MemtableKeyCmp.
sourcepub fn new(cmp: Arc<Box<dyn Cmp>>) -> SkipMap
pub fn new(cmp: Arc<Box<dyn Cmp>>) -> SkipMap
Returns a SkipMap that uses the specified comparator.
pub fn len(&self) -> usize
pub fn approx_memory(&self) -> usize
pub fn contains(&self, key: &[u8]) -> bool
sourcepub fn insert(&mut self, key: Vec<u8>, val: Vec<u8>)
pub fn insert(&mut self, key: Vec<u8>, val: Vec<u8>)
inserts a key into the table. key may not be empty.
pub fn iter(&self) -> SkipMapIter
Auto Trait Implementations§
impl !RefUnwindSafe for SkipMap
impl !Send for SkipMap
impl !Sync for SkipMap
impl Unpin for SkipMap
impl !UnwindSafe for SkipMap
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