#[repr(C)]pub struct TemplateRecordRef {
pub key: TemplateKey,
pub offset: u64,
pub len: u32,
pub padding: u32,
}Expand description
Record reference for template-coordinate sorting with cached key.
Caches the full TemplateKey inline for O(1) comparisons during sort.
This trades memory (48 bytes vs 16 bytes per ref) for cache locality -
all comparison data is in the ref itself, avoiding random access to
the multi-GB data buffer during sorting.
Fields§
§key: TemplateKeyCached sort key for O(1) comparisons without data buffer access.
offset: u64Offset to inline header in data buffer.
len: u32Length of raw BAM data (excluding inline header).
padding: u32Padding for alignment.
Trait Implementations§
Source§impl Clone for TemplateRecordRef
impl Clone for TemplateRecordRef
Source§fn clone(&self) -> TemplateRecordRef
fn clone(&self) -> TemplateRecordRef
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 TemplateRecordRef
impl Debug for TemplateRecordRef
Source§impl Ord for TemplateRecordRef
impl Ord for TemplateRecordRef
Source§impl PartialEq for TemplateRecordRef
impl PartialEq for TemplateRecordRef
Source§impl PartialOrd for TemplateRecordRef
impl PartialOrd for TemplateRecordRef
impl Copy for TemplateRecordRef
impl Eq for TemplateRecordRef
Auto Trait Implementations§
impl Freeze for TemplateRecordRef
impl RefUnwindSafe for TemplateRecordRef
impl Send for TemplateRecordRef
impl Sync for TemplateRecordRef
impl Unpin for TemplateRecordRef
impl UnsafeUnpin for TemplateRecordRef
impl UnwindSafe for TemplateRecordRef
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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