#[repr(C)]pub struct TemplateInlineHeader {
pub key: TemplateKey,
pub record_len: u32,
pub padding: u32,
}Expand description
Inline header stored before each record in the data buffer. This allows us to use a minimal ref structure while still having fast access to the full sort key.
Layout (40 bytes total):
- primary: 8 bytes (u64)
- secondary: 8 bytes (u64)
- tertiary: 8 bytes (u64)
name_hash_upper: 8 bytes (u64)record_len: 4 bytes (u32)- padding: 4 bytes (u32)
Fields§
§key: TemplateKeyFull sort key for comparison.
record_len: u32Length of following raw BAM data.
padding: u32Padding for 8-byte alignment.
Implementations§
Trait Implementations§
Source§impl Clone for TemplateInlineHeader
impl Clone for TemplateInlineHeader
Source§fn clone(&self) -> TemplateInlineHeader
fn clone(&self) -> TemplateInlineHeader
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 moreSource§impl Debug for TemplateInlineHeader
impl Debug for TemplateInlineHeader
impl Copy for TemplateInlineHeader
Auto Trait Implementations§
impl Freeze for TemplateInlineHeader
impl RefUnwindSafe for TemplateInlineHeader
impl Send for TemplateInlineHeader
impl Sync for TemplateInlineHeader
impl Unpin for TemplateInlineHeader
impl UnsafeUnpin for TemplateInlineHeader
impl UnwindSafe for TemplateInlineHeader
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