pub struct CompactRecordHeader {
pub n_owned: u8,
pub delete_mark: bool,
pub min_rec: bool,
pub heap_no: u16,
pub rec_type: RecordType,
pub next_offset: i16,
}Expand description
Parsed compact (new-style) record header.
In compact format, 5 bytes precede each record:
- Byte 0: info bits (delete mark, min_rec flag) + n_owned upper nibble
- Bytes 1-2: heap_no (13 bits) + rec_type (3 bits)
- Bytes 3-4: next record offset (signed, relative)
Fields§
§n_owned: u8Number of records owned by this record in the page directory.
delete_mark: boolDelete mark flag.
min_rec: boolMin-rec flag (leftmost record on a non-leaf level).
heap_no: u16Record’s position in the heap.
rec_type: RecordTypeRecord type.
next_offset: i16Relative offset to the next record (signed).
Implementations§
Trait Implementations§
Source§impl Clone for CompactRecordHeader
impl Clone for CompactRecordHeader
Source§fn clone(&self) -> CompactRecordHeader
fn clone(&self) -> CompactRecordHeader
Returns a duplicate of the value. Read more
1.0.0 · 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 CompactRecordHeader
impl RefUnwindSafe for CompactRecordHeader
impl Send for CompactRecordHeader
impl Sync for CompactRecordHeader
impl Unpin for CompactRecordHeader
impl UnwindSafe for CompactRecordHeader
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