Trait noodles_sam::alignment::record::Sequence

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

An alignment record sequence.

Required Methods§

source

fn is_empty(&self) -> bool

Returns whether there are any bases.

source

fn len(&self) -> usize

Returns the number of bases.

source

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

Returns an iterator over bases.

Trait Implementations§

source§

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

§

type Item = u8

The type of the elements being iterated over.
§

type IntoIter = Box<dyn Iterator<Item = <&'a dyn Sequence 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 Sequence for Box<dyn Sequence + '_>

source§

fn is_empty(&self) -> bool

Returns whether there are any bases.
source§

fn len(&self) -> usize

Returns the number of bases.
source§

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

Returns an iterator over bases.

Implementations on Foreign Types§

source§

impl Sequence for Box<dyn Sequence + '_>

source§

fn is_empty(&self) -> bool

source§

fn len(&self) -> usize

source§

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

Implementors§

source§

impl Sequence for &noodles_sam::alignment::record_buf::Sequence

source§

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