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.
pub fn to_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more