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>> + '_>;

    // Provided methods
    fn alignment_span(&self) -> Result<usize> { ... }
    fn read_length(&self) -> Result<usize> { ... }
}
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>> + '_>

Returns an iterator over operations.

Provided Methods§

source

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

Calculates the alignment span over the reference sequence.

source

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

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

Returns an iterator over operations.
source§

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

Calculates the alignment span over the reference sequence.
source§

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

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) -> Self::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>> + '_>

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_sam::record::Cigar<'a>