Struct rust_htslib::bam::header::Header [−][src]
pub struct Header { /* fields omitted */ }
A BAM header.
Methods
impl Header
[src]
impl Header
pub fn new() -> Self
[src]
pub fn new() -> Self
Create 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 Self
Add 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 Self
Add 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 Header
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Header
[src]
impl Clone for Header