Struct rust_htslib::bcf::header::HeaderView
[−]
[src]
pub struct HeaderView { pub inner: *mut bcf_hdr_t, }
Fields
inner: *mut bcf_hdr_t
Methods
impl HeaderView
[src]
pub fn new(inner: *mut bcf_hdr_t) -> Self
[src]
pub fn sample_count(&self) -> u32
[src]
pub fn samples(&self) -> Vec<&[u8]>
[src]
pub fn rid2name(&self, rid: u32) -> &[u8]
[src]
pub fn name2rid(&self, name: &[u8]) -> Result<u32, RidError>
[src]
pub fn info_type(
&self,
tag: &[u8]
) -> Result<(TagType, TagLength), TagTypeError>
[src]
&self,
tag: &[u8]
) -> Result<(TagType, TagLength), TagTypeError>
pub fn format_type(
&self,
tag: &[u8]
) -> Result<(TagType, TagLength), TagTypeError>
[src]
&self,
tag: &[u8]
) -> Result<(TagType, TagLength), TagTypeError>
pub fn name_to_id(&self, id: &[u8]) -> Result<Id, IdError>
[src]
Convert string ID (e.g., for a FILTER
value) to its numeric identifier.
pub fn id_to_name(&self, id: Id) -> Vec<u8>
[src]
Convert integer representing an identifier (e.g., a FILTER
value) to its string
name.bam
pub fn sample_to_id(&self, id: &[u8]) -> Result<Id, SampleError>
[src]
Convert string sample name to its numeric identifier.
pub fn id_to_sample(&self, id: Id) -> Vec<u8>
[src]
Convert integer representing an contig to its name.
pub fn header_records(&self) -> Vec<HeaderRecord>
[src]
Return structured HeaderRecord
s.
Trait Implementations
impl Debug for HeaderView
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for HeaderView
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more