[][src]Struct rust_htslib::bam::record::CigarStringView

pub struct CigarStringView { /* fields omitted */ }

Methods

impl CigarStringView[src]

pub fn new(c: CigarString, pos: i64) -> CigarStringView[src]

Construct a new CigarStringView from a CigarString at a position

pub fn end_pos(&self) -> i64[src]

Get (exclusive) end position of alignment.

pub fn read_pos(
    &self,
    ref_pos: u32,
    include_softclips: bool,
    include_dels: bool
) -> Result<Option<u32>>
[src]

For a given position in the reference, get corresponding position within read. If reference position is outside of the read alignment, return None.

Arguments

  • ref_pos - the reference position
  • include_softclips - if true, softclips will be considered as matches or mismatches
  • include_dels - if true, positions within deletions will be considered (first reference matching read position after deletion will be returned)

impl<'a> CigarStringView[src]

pub fn iter(&'a self) -> Iter<'a, Cigar>[src]

Methods from Deref<Target = CigarString>

pub fn iter(&'a self) -> Iter<'a, Cigar>[src]

Trait Implementations

impl Clone for CigarStringView[src]

impl Debug for CigarStringView[src]

impl Deref for CigarStringView[src]

type Target = CigarString

The resulting type after dereferencing.

impl Display for CigarStringView[src]

impl Eq for CigarStringView[src]

impl Index<usize> for CigarStringView[src]

type Output = Cigar

The returned type after indexing.

impl IndexMut<usize> for CigarStringView[src]

impl<'a> IntoIterator for &'a CigarStringView[src]

type Item = &'a Cigar

The type of the elements being iterated over.

type IntoIter = Iter<'a, Cigar>

Which kind of iterator are we turning this into?

impl PartialEq<CigarStringView> for CigarStringView[src]

impl StructuralEq for CigarStringView[src]

impl StructuralPartialEq for CigarStringView[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.