pub struct TreeContext {
pub label: String,
pub root: PageId,
}Expand description
Snapshot of the on-disk shape needed to walk a single B-tree. Used by the obj layer’s wrapper to thread per-tree context (label, root) into the obj-core helper.
Fields§
§label: StringHuman-readable label used in failure messages ("catalog",
"primary:users", "index:users.by_email").
root: PageIdRoot page id for the tree.
Trait Implementations§
Source§impl Clone for TreeContext
impl Clone for TreeContext
Source§fn clone(&self) -> TreeContext
fn clone(&self) -> TreeContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for TreeContext
impl RefUnwindSafe for TreeContext
impl Send for TreeContext
impl Sync for TreeContext
impl Unpin for TreeContext
impl UnsafeUnpin for TreeContext
impl UnwindSafe for TreeContext
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