pub struct RecordRef {
pub sort_key: u64,
pub offset: u64,
pub len: u32,
/* private fields */
}Expand description
Reference to a record in the buffer (used for sorting).
This is a lightweight handle that can be sorted efficiently. The actual record data stays in place in the buffer.
Note: No read name tie-breaking is used, matching samtools behavior. Equal records maintain their original input order (stable sort).
Fields§
§sort_key: u64Packed primary sort key for fast comparison.
offset: u64Offset into RecordBuffer where record header starts.
len: u32Length of raw BAM data (excluding inline header).
Trait Implementations§
Source§impl Ord for RecordRef
impl Ord for RecordRef
Source§impl PartialOrd for RecordRef
impl PartialOrd for RecordRef
impl Copy for RecordRef
impl Eq for RecordRef
Auto Trait Implementations§
impl Freeze for RecordRef
impl RefUnwindSafe for RecordRef
impl Send for RecordRef
impl Sync for RecordRef
impl Unpin for RecordRef
impl UnsafeUnpin for RecordRef
impl UnwindSafe for RecordRef
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