noodles_sam::alignment::recordTrait Sequence
Source pub trait Sequence {
// Required methods
fn is_empty(&self) -> bool;
fn len(&self) -> usize;
fn get(&self, i: usize) -> Option<u8>;
fn split_at_checked(
&self,
mid: usize,
) -> Option<(Box<dyn Sequence + '_>, Box<dyn Sequence + '_>)>;
fn iter(&self) -> Box<dyn Iterator<Item = u8> + '_>;
}
Expand description
An alignment record sequence.
Returns whether there are any bases.
Returns the number of bases.
Returns the base at the given index.
Splits the subsequence into two subsequences at the given index.
Returns an iterator over bases.
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Returns whether there are any bases.
Returns the number of bases.
Returns the base at the given index.
Splits the subsequence into two subsequences at the given index.
Returns an iterator over bases.