[][src]Struct rust_htslib::bam::record::Seq

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.

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<'a> Clone for Seq<'a>[src]

impl<'a> Copy for Seq<'a>[src]

impl<'a> Debug for Seq<'a>[src]

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).

impl<'a> Send for Seq<'a>[src]

impl<'a> Sync for Seq<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Seq<'a>

impl<'a> Unpin for Seq<'a>

impl<'a> UnwindSafe for Seq<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.