pub struct Tree {
pub root_page_id: Arc<RwLock<PageId>>,
/* private fields */
}Fields§
§root_page_id: Arc<RwLock<PageId>>Implementations§
Source§impl Tree
impl Tree
pub fn open( store: Arc<dyn PageStore>, root_page_id: Arc<RwLock<PageId>>, pending_free: Arc<RwLock<Vec<(PageId, u32)>>>, pending_alloc: Arc<RwLock<HashSet<PageId>>>, ) -> Result<Self>
pub fn put(&self, key: &[u8], value: &[u8]) -> Result<()>
pub fn get(&self, key: &[u8]) -> Result<Vec<u8>>
pub fn del(&self, key: &[u8]) -> Result<()>
pub fn iterator(&self) -> TreeIterator
pub fn iterator_from(&self, key: &[u8]) -> TreeIterator
Auto Trait Implementations§
impl Freeze for Tree
impl !RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnsafeUnpin for Tree
impl !UnwindSafe for Tree
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