pub enum DecodedRecord<'a> {
Leaf {
key: &'a [u8],
value: &'a [u8],
overflow: bool,
},
Interior {
key: &'a [u8],
child: u32,
},
}Expand description
The one decoder for records stored in B-tree page slots. Ordinary reads, replacement verification, and recovery all enter through this function; none may index a disk-derived key length, value length, marker, or child pointer first. Keeping the decoder here extends the independent verifier’s boundary instead of creating a recovery-only parser that can drift.
Variants§
Trait Implementations§
Source§impl<'a> Clone for DecodedRecord<'a>
impl<'a> Clone for DecodedRecord<'a>
impl<'a> Copy for DecodedRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for DecodedRecord<'a>
impl<'a> RefUnwindSafe for DecodedRecord<'a>
impl<'a> Send for DecodedRecord<'a>
impl<'a> Sync for DecodedRecord<'a>
impl<'a> Unpin for DecodedRecord<'a>
impl<'a> UnsafeUnpin for DecodedRecord<'a>
impl<'a> UnwindSafe for DecodedRecord<'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