Struct rust_htslib::bam::header::Header [−][src]
pub struct Header { /* fields omitted */ }A BAM header.
Methods
impl Header[src]
impl Headerpub fn new() -> Self[src]
pub fn new() -> SelfCreate a new header.
pub fn from_template(header: &HeaderView) -> Self[src]
pub fn from_template(header: &HeaderView) -> SelfⓘImportant traits for &'a mut Rpub fn push_record(&mut self, record: &HeaderRecord) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn push_record(&mut self, record: &HeaderRecord) -> &mut SelfAdd a record to the header.
ⓘImportant traits for &'a mut Rpub fn push_comment(&mut self, comment: &[u8]) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn push_comment(&mut self, comment: &[u8]) -> &mut SelfAdd a comment to the header.
pub fn to_bytes(&self) -> Vec<u8>[src]
pub fn to_bytes(&self) -> Vec<u8>Trait Implementations
impl Debug for Header[src]
impl Debug for Headerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Header[src]
impl Clone for Header