[−][src]Struct bam::record::Qualities
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
impl Send for Qualities
impl Sync for Qualities
impl Unpin for Qualities
impl UnwindSafe for Qualities
impl RefUnwindSafe for Qualities
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,