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 Freeze for Header
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