Struct rust_htslib::bcf::header::Header [] [src]

pub struct Header {
    pub inner: *mut bcf_hdr_t,
    pub subset: Option<SampleSubset>,
}

A BCF header.

Fields

inner: *mut bcf_hdr_t subset: Option<SampleSubset>

Methods

impl Header
[src]

fn new() -> Self

Create a new header.

fn with_template(header: &HeaderView) -> Self

fn subset_template(header: &HeaderView, samples: &[&[u8]]) -> Result<Self, ()>

fn push_sample(&mut self, sample: &[u8]) -> &mut Self

fn push_record(&mut self, record: &[u8]) -> &mut Self

Add a record to the header.

fn remove_info(&mut self, tag: &[u8]) -> &mut Self

fn remove_format(&mut self, tag: &[u8]) -> &mut Self

Trait Implementations

impl Drop for Header
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more