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]
pub fn new() -> Self[src]
Create a new header.
pub fn with_template(header: &HeaderView) -> Self[src]
pub fn subset_template(
header: &HeaderView,
samples: &[&[u8]]
) -> Result<Self, SubsetError>[src]
header: &HeaderView,
samples: &[&[u8]]
) -> Result<Self, SubsetError>
ⓘImportant traits for &'a mut Wpub fn push_sample(&mut self, sample: &[u8]) -> &mut Self[src]
ⓘImportant traits for &'a mut W
ⓘImportant traits for &'a mut Wpub fn push_record(&mut self, record: &[u8]) -> &mut Self[src]
ⓘImportant traits for &'a mut W
Add a record to the header.
ⓘImportant traits for &'a mut Wpub fn remove_info(&mut self, tag: &[u8]) -> &mut Self[src]
ⓘImportant traits for &'a mut W
ⓘImportant traits for &'a mut Wpub fn remove_format(&mut self, tag: &[u8]) -> &mut Self[src]
ⓘImportant traits for &'a mut W
Trait Implementations
impl Debug for Header[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more