noodles_sam::alignment::record

Trait QualityScores

Source
pub trait QualityScores {
    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn iter(&self) -> Box<dyn Iterator<Item = Result<u8>> + '_>;
}
Expand description

Alignment record quality scores.

Required Methods§

Source

fn is_empty(&self) -> bool

Returns whether there are any scores.

Source

fn len(&self) -> usize

Returns the number of scores.

Source

fn iter(&self) -> Box<dyn Iterator<Item = Result<u8>> + '_>

Returns an iterator over scores.

Trait Implementations§

Source§

impl<'a> IntoIterator for &'a dyn QualityScores

Source§

type Item = Result<u8, Error>

The type of the elements being iterated over.
Source§

type IntoIter = Box<dyn Iterator<Item = <&'a dyn QualityScores as IntoIterator>::Item> + 'a>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl QualityScores for Box<dyn QualityScores + '_>

Source§

fn is_empty(&self) -> bool

Returns whether there are any scores.
Source§

fn len(&self) -> usize

Returns the number of scores.
Source§

fn iter(&self) -> Box<dyn Iterator<Item = Result<u8>> + '_>

Returns an iterator over scores.

Implementations on Foreign Types§

Source§

impl QualityScores for Box<dyn QualityScores + '_>

Source§

fn is_empty(&self) -> bool

Source§

fn len(&self) -> usize

Source§

fn iter(&self) -> Box<dyn Iterator<Item = Result<u8>> + '_>

Implementors§

Source§

impl QualityScores for &noodles_sam::alignment::record_buf::QualityScores

Source§

impl<'a> QualityScores for noodles_sam::record::QualityScores<'a>