pub struct TypedTreeStore<C> { /* private fields */ }Implementations§
Source§impl<C> TypedTreeStore<C>
impl<C> TypedTreeStore<C>
pub fn new(bytes: ByteTreeStore) -> Self
pub fn from_storage(storage: Pager) -> Self
pub fn byte_tree_store(&self) -> &ByteTreeStore
Source§impl<C: KeyValueCodec> TypedTreeStore<C>
impl<C: KeyValueCodec> TypedTreeStore<C>
pub fn create_tree(&self) -> Result<PageId>
pub fn open_tree(&self, root_page_id: PageId) -> Result<TypedTree<C>>
pub fn delete_tree(&self, root_page_id: PageId) -> Result<()>
pub fn validate_tree(&self, root_page_id: PageId) -> Result<bool>
pub fn reset_tree(&self, root_page_id: PageId) -> Result<()>
pub fn collect_page_ids(&self, root_page_id: PageId) -> Result<Vec<PageId>>
pub fn collect_space_stats( &self, root_page_id: PageId, ) -> Result<TreeSpaceStats>
Trait Implementations§
Source§impl<C: Clone> Clone for TypedTreeStore<C>
impl<C: Clone> Clone for TypedTreeStore<C>
Source§fn clone(&self) -> TypedTreeStore<C>
fn clone(&self) -> TypedTreeStore<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<C> Freeze for TypedTreeStore<C>
impl<C> RefUnwindSafe for TypedTreeStore<C>where
C: RefUnwindSafe,
impl<C> Send for TypedTreeStore<C>where
C: Send,
impl<C> Sync for TypedTreeStore<C>where
C: Sync,
impl<C> Unpin for TypedTreeStore<C>where
C: Unpin,
impl<C> UnsafeUnpin for TypedTreeStore<C>
impl<C> UnwindSafe for TypedTreeStore<C>where
C: UnwindSafe,
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