pub struct Alignment<'a> { /* private fields */ }
Expand description
An aligned read in a pileup.
Implementations§
Source§impl<'a> Alignment<'a>
impl<'a> Alignment<'a>
pub fn new(inner: &'a bam_pileup1_t) -> Self
Sourcepub fn qpos(&self) -> Option<usize>
pub fn qpos(&self) -> Option<usize>
Position within the read. None if either is_del
or is_refskip
.
Sourcepub fn indel(&self) -> Indel
pub fn indel(&self) -> Indel
Insertion, deletion (with length) if indel starts at next base or None otherwise.
Sourcepub fn is_refskip(&self) -> bool
pub fn is_refskip(&self) -> bool
Whether this position is marked as refskip in the CIGAR string.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Alignment<'a>
impl<'a> RefUnwindSafe for Alignment<'a>
impl<'a> !Send for Alignment<'a>
impl<'a> !Sync for Alignment<'a>
impl<'a> Unpin for Alignment<'a>
impl<'a> UnwindSafe for Alignment<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more