pub struct TypedTree<C> { /* private fields */ }Implementations§
Source§impl<C: KeyValueCodec> TypedTree<C>
impl<C: KeyValueCodec> TypedTree<C>
pub fn root_page_id(&self) -> PageId
pub fn get(&mut self, key: &C::Key) -> Result<Option<C::Value>>
pub fn insert(&mut self, key: &C::Key, value: &C::Value) -> Result<()>
pub fn delete(&mut self, key: &C::Key) -> Result<Option<C::Value>>
pub fn entries(&self) -> Result<Vec<(C::Key, C::Value)>>
pub fn cursor(&self) -> Result<TypedTreeCursor<C>>
Auto Trait Implementations§
impl<C> Freeze for TypedTree<C>
impl<C> RefUnwindSafe for TypedTree<C>where
C: RefUnwindSafe,
impl<C> Send for TypedTree<C>where
C: Send,
impl<C> Sync for TypedTree<C>where
C: Sync,
impl<C> Unpin for TypedTree<C>where
C: Unpin,
impl<C> UnsafeUnpin for TypedTree<C>
impl<C> UnwindSafe for TypedTree<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