Function rustybam::paf::update_cigar_opt_len
source · [−]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));