pub struct ByteTree { /* private fields */ }Implementations§
Source§impl ByteTree
impl ByteTree
pub fn root_page_id(&self) -> PageId
pub fn get(&mut self, key: &[u8]) -> Result<Option<Vec<u8>>>
pub fn insert(&mut self, key: &[u8], value: &[u8]) -> Result<()>
pub fn insert_with_mutation( &mut self, key: &[u8], value: &[u8], ) -> Result<TreeMutation>
pub fn delete(&mut self, key: &[u8]) -> Result<Option<Vec<u8>>>
pub fn delete_with_mutation( &mut self, key: &[u8], ) -> Result<(Option<Vec<u8>>, TreeMutation)>
pub fn entry(&mut self, key: &[u8]) -> Result<Option<(Vec<u8>, Vec<u8>)>>
pub fn entries(&self) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
pub fn entries_from(&self, start_key: &[u8]) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
pub fn entries_with_prefix( &self, prefix: &[u8], ) -> Result<Vec<(Vec<u8>, Vec<u8>)>>
pub fn cursor(&self) -> Result<ByteTreeCursor>
Auto Trait Implementations§
impl Freeze for ByteTree
impl RefUnwindSafe for ByteTree
impl Send for ByteTree
impl Sync for ByteTree
impl Unpin for ByteTree
impl UnsafeUnpin for ByteTree
impl UnwindSafe for ByteTree
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