Struct rust_htslib::bam::record::CigarStringView
[−]
[src]
pub struct CigarStringView { /* fields omitted */ }
Methods
impl CigarStringView
[src]
fn end_pos(&self) -> i32
Get end position of alignment.
fn read_pos(
&self,
ref_pos: u32,
include_softclips: bool,
include_dels: bool
) -> Result<Option<u32>, CigarError>
&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 (start of 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
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CigarStringView) -> bool
This method tests for !=
.
impl Clone for CigarStringView
[src]
fn clone(&self) -> CigarStringView
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for CigarStringView
[src]
impl Deref for CigarStringView
[src]
type Target = CigarString
The resulting type after dereferencing
fn deref(&self) -> &CigarString
The method called to dereference a value
impl Index<usize> for CigarStringView
[src]
type Output = Cigar
The returned type after indexing
fn index(&self, index: usize) -> &Cigar
The method for the indexing (container[index]
) operation
impl IndexMut<usize> for CigarStringView
[src]
fn index_mut(&mut self, index: usize) -> &mut Cigar
The method for 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
Creates an iterator from a value. Read more