Trait noodles::sam::alignment::record::cigar::Cigar

source ·
pub trait Cigar {
    // Required methods
    fn is_empty(&self) -> bool;
    fn len(&self) -> usize;
    fn iter(&self) -> Box<dyn Iterator<Item = Result<Op, Error>> + '_>;

    // Provided methods
    fn alignment_span(&self) -> Result<usize, Error> { ... }
    fn read_length(&self) -> Result<usize, Error> { ... }
}
Expand description

Alignment record CIGAR operations.

Required Methods§

source

fn is_empty(&self) -> bool

Returns whether there are any operations.

source

fn len(&self) -> usize

Returns the number of operations.

source

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

Returns an iterator over operations.

Provided Methods§

source

fn alignment_span(&self) -> Result<usize, Error>

Calculates the alignment span over the reference sequence.

source

fn read_length(&self) -> Result<usize, Error>

Calculates the read length.

Trait Implementations§

source§

impl Cigar for Box<dyn Cigar + '_>

source§

fn is_empty(&self) -> bool

Returns whether there are any operations.
source§

fn len(&self) -> usize

Returns the number of operations.
source§

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

Returns an iterator over operations.
source§

fn alignment_span(&self) -> Result<usize, Error>

Calculates the alignment span over the reference sequence.
source§

fn read_length(&self) -> Result<usize, Error>

Calculates the read length.
source§

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

§

type Item = Result<Op, Error>

The type of the elements being iterated over.
§

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

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

fn into_iter(self) -> <&'a dyn Cigar as IntoIterator>::IntoIter

Creates an iterator from a value. Read more

Implementations on Foreign Types§

source§

impl Cigar for Box<dyn Cigar + '_>

source§

fn is_empty(&self) -> bool

source§

fn len(&self) -> usize

source§

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

Implementors§

source§

impl Cigar for &noodles::sam::alignment::record_buf::Cigar

source§

impl Cigar for noodles::sam::alignment::record_buf::Cigar

source§

impl<'a> Cigar for noodles::bam::record::Cigar<'a>

source§

impl<'a> Cigar for noodles::sam::record::Cigar<'a>