Struct rust_htslib::bcf::header::Header [−][src]
pub struct Header { pub inner: *mut bcf_hdr_t, pub subset: Option<SampleSubset>, }
Expand description
A BCF header.
Fields
inner: *mut bcf_hdr_t
subset: Option<SampleSubset>
Implementations
Create a new Header
using the given HeaderView
as the template.
After construction, you can modify the header independently from the template header
.
Arguments
header
- TheHeaderView
to use as the template.
Create a new Header
using the given HeaderView
as as template, but subsetting to the
given samples
.
Arguments
header
- TheHeaderView
to use for the template.samples
- A slice of byte-encoded ([u8]
) sample names.
Add a sample
to the header.
Arguments
sample
- Name of the sample to add (to the end of the sample list).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Header
impl UnwindSafe for Header