Struct rust_htslib::bam::record::CigarStringView
[−]
[src]
pub struct CigarStringView { /* fields omitted */ }
Methods
impl CigarStringView[src]
pub fn new(c: CigarString, pos: i32) -> CigarStringView[src]
Construct a new CigarStringView from a CigarString at a position
pub fn end_pos(&self) -> Result<i32, CigarError>[src]
Get (exclusive) end position of alignment.
pub fn read_pos(
&self,
ref_pos: u32,
include_softclips: bool,
include_dels: bool
) -> Result<Option<u32>, CigarError>[src]
&self,
ref_pos: u32,
include_softclips: bool,
include_dels: bool
) -> Result<Option<u32>, CigarError>
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 positioninclude_softclips- if true, softclips will be considered as matches or mismatchesinclude_dels- if true, positions within deletions will be considered (first reference matching read position after deletion will be returned)
impl<'a> CigarStringView[src]
Methods from Deref<Target = CigarString>
Trait Implementations
impl Eq for CigarStringView[src]
impl PartialEq for CigarStringView[src]
fn eq(&self, __arg_0: &CigarStringView) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CigarStringView) -> bool[src]
This method tests for !=.
impl Clone for CigarStringView[src]
fn clone(&self) -> CigarStringView[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for CigarStringView[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Deref for CigarStringView[src]
type Target = CigarString
The resulting type after dereferencing.
fn deref(&self) -> &CigarString[src]
Dereferences the value.
impl Index<usize> for CigarStringView[src]
type Output = Cigar
The returned type after indexing.
fn index(&self, index: usize) -> &Cigar[src]
Performs the indexing (container[index]) operation.
impl IndexMut<usize> for CigarStringView[src]
fn index_mut(&mut self, index: usize) -> &mut Cigar[src]
Performs the mutable indexing (container[index]) operation.
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?
fn into_iter(self) -> Self::IntoIter[src]
Creates an iterator from a value. Read more