pub struct PackedSequence {
pub bases: Vec<u8>,
pub n_mask: Vec<u8>,
pub summary: BaseSummary,
}Expand description
Packed sequence bytes plus one bit per ambiguous/non-ACGT base.
Bases are packed four per byte with base 0 in the least significant two
bits. Canonical bases use A=0, C=1, G=2, T=3. Masked bases store 0 in the
packed stream and set the corresponding bit in n_mask.
Fields§
§bases: Vec<u8>Two-bit packed base bytes, four bases per byte.
n_mask: Vec<u8>Ambiguity bit mask, one bit per input base.
summary: BaseSummaryBase counts for the original sequence.
Implementations§
Trait Implementations§
Source§impl Clone for PackedSequence
impl Clone for PackedSequence
Source§fn clone(&self) -> PackedSequence
fn clone(&self) -> PackedSequence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackedSequence
impl Debug for PackedSequence
impl Eq for PackedSequence
Source§impl PartialEq for PackedSequence
impl PartialEq for PackedSequence
Source§fn eq(&self, other: &PackedSequence) -> bool
fn eq(&self, other: &PackedSequence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackedSequence
Auto Trait Implementations§
impl Freeze for PackedSequence
impl RefUnwindSafe for PackedSequence
impl Send for PackedSequence
impl Sync for PackedSequence
impl Unpin for PackedSequence
impl UnsafeUnpin for PackedSequence
impl UnwindSafe for PackedSequence
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