Enum bam_builder::bam_order::BamSortOrder
source · pub enum BamSortOrder {
NameSorted,
CoordSorted,
Unsorted,
Random,
}
Expand description
Sort order options for reads
Variants§
NameSorted
Sort by qname
.
CoordSorted
Sort by tid
and pos
.
Unsorted
Leave records in current order.
Random
Randomly shuffle records.
Implementations§
source§impl BamSortOrder
impl BamSortOrder
sourcepub fn sort(&self, records: &mut [Record])
pub fn sort(&self, records: &mut [Record])
Sort records
based on the BamSortOrder
variant.
Trait Implementations§
source§impl Debug for BamSortOrder
impl Debug for BamSortOrder
source§impl Default for BamSortOrder
impl Default for BamSortOrder
source§fn default() -> Self
fn default() -> Self
Default for BamSortOrder
is BamSortOrder::Unsorted
.
Auto Trait Implementations§
impl RefUnwindSafe for BamSortOrder
impl Send for BamSortOrder
impl Sync for BamSortOrder
impl Unpin for BamSortOrder
impl UnwindSafe for BamSortOrder
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