pub struct BTree { /* private fields */ }Implementations§
Source§impl BTree
impl BTree
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn create<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn get(&self, key: &[u8]) -> Result<Option<Vec<u8>>>
pub fn insert(&mut self, key: &[u8], value: &[u8]) -> Result<()>
pub fn delete(&mut self, key: &[u8]) -> Result<()>
pub fn scan(&self, start: &[u8], end: &[u8]) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
pub fn flush(&mut self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for BTree
impl !RefUnwindSafe for BTree
impl Send for BTree
impl Sync for BTree
impl Unpin for BTree
impl UnwindSafe for BTree
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