fn unpack_cigar(&self) -> CigarStringView {
        CigarString(
            self.raw_cigar()
                .iter()
                .map(|&c| {
                    let len = c >> 4;
                    match c & 0b1111 {
                        0 => Cigar::Match(len),
                        1 => Cigar::Ins(len),
                        2 => Cigar::Del(len),
                        3 => Cigar::RefSkip(len),
                        4 => Cigar::SoftClip(len),
                        5 => Cigar::HardClip(len),
                        6 => Cigar::Pad(len),
                        7 => Cigar::Equal(len),
                        8 => Cigar::Diff(len),
                        _ => panic!("Unexpected cigar operation"),
                    }
                })
                .collect(),
        ).into_view(self.pos())
    }
/// Unpack cigar string. Complexity: O(k) with k being the length of the cigar string.
Unpack cigar string. Complexity: O(k) with k being the length of the cigar string.
Unpack cigar string . Complexity : O ( k ) with k being the length of the cigar string .
fn unpack_cigar(&self) -> CigarStringView {
        CigarString(
            self.raw_cigar()
                .iter()
                .map(|&c| {
                    let len = c >> 4;
                    match c & 0b1111 {
                        0 => Cigar::Match(len),
                        1 => Cigar::Ins(len),
                        2 => Cigar::Del(len),
                        3 => Cigar::RefSkip(len),
                        4 => Cigar::SoftClip(len),
                        5 => Cigar::HardClip(len),
                        6 => Cigar::Pad(len),
                        7 => Cigar::Equal(len),
                        8 => Cigar::Diff(len),
                        _ => panic!("Unexpected cigar operation"),
                    }
                })
                .collect(),
        ).into_view(self.pos())
    }
fn unpack_cigar ( & self ) -> CigarStringView { CigarString ( self . raw_cigar ( ) . iter ( ) . map ( | & c | { let len = c >> 4 ; match c & 0b1111 { 0 => Cigar :: Match ( len ) , 1 => Cigar :: Ins ( len ) , 2 => Cigar :: Del ( len ) , 3 => Cigar :: RefSkip ( len ) , 4 => Cigar :: SoftClip ( len ) , 5 => Cigar :: HardClip ( len ) , 6 => Cigar :: Pad ( len ) , 7 => Cigar :: Equal ( len ) , 8 => Cigar :: Diff ( len ) , _ => panic ! ( " " ) , } } ) . collect ( ) , ) . into_view ( self . pos ( ) ) }
Unpack cigar string.
Unpack cigar string .
&self
&self