[][src]Struct bam::record::Qualities

pub struct Qualities { /* fields omitted */ }

Wrapper around qualities.

Methods

impl Qualities[src]

pub fn raw(&self) -> &[u8][src]

Returns raw qualities, they contain values 0-93, without +33 added.

If qualities are empty, they have the same length as Sequence, but are filled with 0xff.

pub fn len(&self) -> usize[src]

Returns 0 if qualities are not available.

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

Returns true if raw qualities have length 0 or are filled with 0xff. Only the first element is checked, O(1).

pub fn to_readable(&self) -> Vec<u8>[src]

Returns vector with +33 added, O(n).

pub fn write_readable<W: Write>(&self, f: &mut W) -> Result<()>[src]

Writes to f in human readable format (qual + 33). Writes * if empty.

pub fn clear(&mut self)[src]

Clears the contents but does not touch capacity.

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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