pub fn update_cigar_opt_len(opt: &Cigar, new_opt_len: u32) -> Cigar
Expand description

Example

use rustybam::paf;
use rust_htslib::bam::record::Cigar::*;
assert_eq!(Diff(5), paf::update_cigar_opt_len(&Diff(10), 5));
assert_eq!(Diff(10), paf::update_cigar_opt_len(&Diff(1), 10));