#[non_exhaustive]pub struct MinstorePage<'a> { /* private fields */ }Expand description
A parsed Minstore B+-tree page (leaf or internal/branch node).
Implementations§
Source§impl<'a> MinstorePage<'a>
impl<'a> MinstorePage<'a>
Sourcepub fn parse(data: &'a [u8], offset: u64) -> Result<Self, RefsError>
pub fn parse(data: &'a [u8], offset: u64) -> Result<Self, RefsError>
Parse the Minstore node in data (a metadata page). offset is the
page’s absolute byte position, used only for diagnostics.
§Errors
RefsError::Truncatedif the page is too short to hold the node-header-offset field or the node header it points at.
Sourcepub fn rows(&self) -> impl Iterator<Item = MinstoreRow<'a>> + '_
pub fn rows(&self) -> impl Iterator<Item = MinstoreRow<'a>> + '_
Iterate the node’s (key, value) records, skipping any record whose
offset or key/value span lies outside the page (never over-reads).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MinstorePage<'a>
impl<'a> RefUnwindSafe for MinstorePage<'a>
impl<'a> Send for MinstorePage<'a>
impl<'a> Sync for MinstorePage<'a>
impl<'a> Unpin for MinstorePage<'a>
impl<'a> UnsafeUnpin for MinstorePage<'a>
impl<'a> UnwindSafe for MinstorePage<'a>
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