Struct rust_htslib::bam::record::Seq
[−]
[src]
pub struct Seq<'a> { pub encoded: &'a [u8], // some fields omitted }
The sequence of a record.
Fields
encoded: &'a [u8]
Methods
impl<'a> Seq<'a>
[src]
pub fn encoded_base(&self, i: usize) -> u8
[src]
Return encoded base. Complexity: O(1).
pub fn as_bytes(&self) -> Vec<u8>
[src]
Return decoded sequence. Complexity: O(m) with m being the read length.
pub fn len(&self) -> usize
[src]
Return length (in bases) of the sequence.
Trait Implementations
impl<'a> Debug for Seq<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Copy for Seq<'a>
[src]
impl<'a> Clone for Seq<'a>
[src]
fn clone(&self) -> Seq<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Index<usize> for Seq<'a>
[src]
type Output = u8
The returned type after indexing.
fn index(&self, index: usize) -> &u8
[src]
Return decoded base at given position within read. Complexity: O(1).