pub struct DatabaseTree { /* private fields */ }Expand description
Persistent B-tree root metadata stored alongside the database record.
Holds the root LSN so that recovery can locate the tree root on disk.
The live in-memory tree is DatabaseImpl::real_tree.
(the persistent Tree object stored as part
of the database record).
Implementations§
Source§impl DatabaseTree
impl DatabaseTree
pub fn new() -> Self
pub fn get_root_lsn(&self) -> u64
pub fn set_root_lsn(&mut self, lsn: u64)
Trait Implementations§
Source§impl Debug for DatabaseTree
impl Debug for DatabaseTree
Auto Trait Implementations§
impl Freeze for DatabaseTree
impl RefUnwindSafe for DatabaseTree
impl Send for DatabaseTree
impl Sync for DatabaseTree
impl Unpin for DatabaseTree
impl UnsafeUnpin for DatabaseTree
impl UnwindSafe for DatabaseTree
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