pub fn end_pos(&self) -> Result<i32, CigarError> {
        let mut pos = self.pos;
        for c in self {
            match c {
                &Cigar::Match(l)
                | &Cigar::RefSkip(l)
                | &Cigar::Del(l)
                | &Cigar::Equal(l)
                | &Cigar::Diff(l) => pos += l as i32,
                // these don't add to end_pos on reference
                &Cigar::Ins(_) | &Cigar::SoftClip(_) | &Cigar::HardClip(_) | &Cigar::Pad(_) => (),
            }
        }
        Ok(pos)
    }
/// Get (exclusive) end position of alignment.
Get (exclusive) end position of alignment.
Get ( exclusive ) end position of alignment .
pub fn end_pos(&self) -> Result<i32, CigarError> {
        let mut pos = self.pos;
        for c in self {
            match c {
                &Cigar::Match(l)
                | &Cigar::RefSkip(l)
                | &Cigar::Del(l)
                | &Cigar::Equal(l)
                | &Cigar::Diff(l) => pos += l as i32,
                // these don't add to end_pos on reference
                &Cigar::Ins(_) | &Cigar::SoftClip(_) | &Cigar::HardClip(_) | &Cigar::Pad(_) => (),
            }
        }
        Ok(pos)
    }
pub fn end_pos ( & self ) -> Result < i32 , CigarError > { let mut pos = self . pos ; for c in self { match c { & Cigar :: Match ( l ) | & Cigar :: RefSkip ( l ) | & Cigar :: Del ( l ) | & Cigar :: Equal ( l ) | & Cigar :: Diff ( l ) => pos += l as i32 , // these don't add to end_pos on reference & Cigar :: Ins ( _ ) | & Cigar :: SoftClip ( _ ) | & Cigar :: HardClip ( _ ) | & Cigar :: Pad ( _ ) => ( ) , } } Ok ( pos ) }
Get (exclusive) end position of alignment.
Get ( exclusive ) end position of alignment .
&self
&self