noodles_sam::alignment::record::cigar

Trait 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

Source§

type Item = Result<Op, Error>

The type of the elements being iterated over.
Source§

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>