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