pub struct CoordinateKey {
pub tid: i32,
pub pos: i64,
pub reverse: bool,
}Expand description
Sort key for coordinate ordering.
Sort order: reference ID → position → reverse strand flag. Unmapped reads (tid = -1) are sorted to the end.
Note: No read name tie-breaking is used, matching samtools behavior. Equal records maintain their original input order (stable sort).
Fields§
§tid: i32Reference sequence ID (tid), or i32::MAX for unmapped.
pos: i640-based alignment start position.
reverse: boolTrue if reverse strand.
Implementations§
Source§impl CoordinateKey
impl CoordinateKey
Trait Implementations§
Source§impl Clone for CoordinateKey
impl Clone for CoordinateKey
Source§fn clone(&self) -> CoordinateKey
fn clone(&self) -> CoordinateKey
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 CoordinateKey
impl Debug for CoordinateKey
Source§impl Ord for CoordinateKey
impl Ord for CoordinateKey
Source§impl PartialEq for CoordinateKey
impl PartialEq for CoordinateKey
Source§impl PartialOrd for CoordinateKey
impl PartialOrd for CoordinateKey
Source§impl SortKey for CoordinateKey
impl SortKey for CoordinateKey
impl Eq for CoordinateKey
impl StructuralPartialEq for CoordinateKey
Auto Trait Implementations§
impl Freeze for CoordinateKey
impl RefUnwindSafe for CoordinateKey
impl Send for CoordinateKey
impl Sync for CoordinateKey
impl Unpin for CoordinateKey
impl UnsafeUnpin for CoordinateKey
impl UnwindSafe for CoordinateKey
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