Trait noodles_sam::alignment::record::QualityScores

source ·
pub trait QualityScores {
    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn iter(&self) -> Box<dyn Iterator<Item = 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 = u8> + '_>

Returns an iterator over scores.

Trait Implementations§

source§

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

§

type Item = u8

The type of the elements being iterated over.
§

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 = 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 = u8> + '_>

Implementors§

source§

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

source§

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