[−][src]Struct rust_htslib::bam::record::CigarStringView
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]
&self,
ref_pos: u32,
include_softclips: bool,
include_dels: bool
) -> Result<Option<u32>>
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 Clone for CigarStringView
[src]
fn clone(&self) -> CigarStringView
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CigarStringView
[src]
impl Deref for CigarStringView
[src]
type Target = CigarString
The resulting type after dereferencing.
fn deref(&self) -> &CigarString
[src]
impl Display for CigarStringView
[src]
impl Eq for CigarStringView
[src]
impl Index<usize> for CigarStringView
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<CigarStringView> for CigarStringView
[src]
fn eq(&self, other: &CigarStringView) -> bool
[src]
fn ne(&self, other: &CigarStringView) -> bool
[src]
impl StructuralEq for CigarStringView
[src]
impl StructuralPartialEq for CigarStringView
[src]
Auto Trait Implementations
impl RefUnwindSafe for CigarStringView
impl Send for CigarStringView
impl Sync for CigarStringView
impl Unpin for CigarStringView
impl UnwindSafe for CigarStringView
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,