Function rust_htslib::htslib::bam_plp_constructor [] [src]

pub unsafe extern "C" fn bam_plp_constructor(
    plp: bam_plp_t,
    func: Option<unsafe extern "C" fn(data: *mut c_void, b: *const bam1_t, cd: *mut bam_pileup_cd) -> c_int>
)

bam_plp_constructor() - sets a callback to initialise any per-pileup1_t fields. @plp: The bam_plp_t initialised using bam_plp_init. @func: The callback function itself. When called, it is given the data argument (specified in bam_plp_init), the bam structure and a pointer to a locally allocated bam_pileup_cd union. This union will also be present in each bam_pileup1_t created.