pub enum BTreeV2Record {
LinkNameHash {
hash: u32,
heap_id: Vec<u8>,
},
CreationOrder {
order: u64,
heap_id: Vec<u8>,
},
AttributeNameHash {
hash: u32,
flags: u8,
creation_order: u32,
heap_id: Vec<u8>,
},
AttributeCreationOrder {
order: u32,
heap_id: Vec<u8>,
},
ChunkedNonFiltered {
address: u64,
offsets: Vec<u64>,
},
ChunkedFiltered {
address: u64,
chunk_size: u64,
filter_mask: u32,
offsets: Vec<u64>,
},
Unknown {
record_type: u8,
data: Vec<u8>,
},
}Expand description
A record from a B-tree v2.
The record format depends on the B-tree type field in the header.
Variants§
LinkNameHash
Type 5: Link name for indexed group (hashed).
CreationOrder
Type 6: Creation order for indexed group.
AttributeNameHash
Type 8: Attribute name for indexed group (hashed).
AttributeCreationOrder
Type 9: Attribute creation order.
ChunkedNonFiltered
Type 10: Non-filtered chunked dataset record (v2 chunk index).
ChunkedFiltered
Type 11: Filtered chunked dataset record (v2 chunk index).
Unknown
Unknown/unsupported record type — raw bytes preserved.
Trait Implementations§
Source§impl Clone for BTreeV2Record
impl Clone for BTreeV2Record
Source§fn clone(&self) -> BTreeV2Record
fn clone(&self) -> BTreeV2Record
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 BTreeV2Record
impl RefUnwindSafe for BTreeV2Record
impl Send for BTreeV2Record
impl Sync for BTreeV2Record
impl Unpin for BTreeV2Record
impl UnsafeUnpin for BTreeV2Record
impl UnwindSafe for BTreeV2Record
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more