Struct rust_htslib::bam::header::Header
source · pub struct Header { /* private fields */ }
Expand description
A BAM header.
Implementations§
source§impl Header
impl Header
pub fn from_template(header: &HeaderView) -> Self
sourcepub fn push_record(&mut self, record: &HeaderRecord<'_>) -> &mut Self
pub fn push_record(&mut self, record: &HeaderRecord<'_>) -> &mut Self
Add a record to the header.
sourcepub fn push_comment(&mut self, comment: &[u8]) -> &mut Self
pub fn push_comment(&mut self, comment: &[u8]) -> &mut Self
Add a comment to the header.