Struct rust_htslib::bam::HeaderView
[−]
[src]
pub struct HeaderView { /* fields omitted */ }
Methods
impl HeaderView[src]
pub fn from_header(header: &Header) -> Self[src]
Create a new HeaderView from a pre-populated Header object
pub fn new(inner: *mut bam_hdr_t) -> Self[src]
Create a new HeaderView from the underlying Htslib type, and own it.
pub fn inner(&self) -> bam_hdr_t[src]
pub fn inner_ptr(&self) -> *const bam_hdr_t[src]
pub fn inner_ptr_mut(&self) -> *mut bam_hdr_t[src]
pub fn tid(&self, name: &[u8]) -> Option<u32>[src]
pub fn target_count(&self) -> u32[src]
pub fn target_names(&self) -> Vec<&[u8]>[src]
pub fn target_len(&self, tid: u32) -> Option<u32>[src]
pub fn as_bytes<'a>(&'a self) -> &'a [u8][src]
Retrieve the textual SAM header as bytes
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