Struct rust_htslib::bam::HeaderView [−][src]
pub struct HeaderView { /* fields omitted */ }Methods
impl HeaderView[src]
impl HeaderViewpub fn from_header(header: &Header) -> Self[src]
pub fn from_header(header: &Header) -> SelfCreate a new HeaderView from a pre-populated Header object
pub fn new(inner: *mut bam_hdr_t) -> Self[src]
pub fn new(inner: *mut bam_hdr_t) -> SelfCreate a new HeaderView from the underlying Htslib type, and own it.
pub fn inner(&self) -> bam_hdr_t[src]
pub fn inner(&self) -> bam_hdr_tpub fn inner_ptr(&self) -> *const bam_hdr_t[src]
pub fn inner_ptr(&self) -> *const bam_hdr_tpub fn inner_ptr_mut(&self) -> *mut bam_hdr_t[src]
pub fn inner_ptr_mut(&self) -> *mut bam_hdr_tpub fn tid(&self, name: &[u8]) -> Option<u32>[src]
pub fn tid(&self, name: &[u8]) -> Option<u32>pub fn target_count(&self) -> u32[src]
pub fn target_count(&self) -> u32pub fn target_names(&self) -> Vec<&[u8]>[src]
pub fn target_names(&self) -> Vec<&[u8]>pub fn target_len(&self, tid: u32) -> Option<u32>[src]
pub fn target_len(&self, tid: u32) -> Option<u32>pub fn as_bytes<'a>(&'a self) -> &'a [u8][src]
pub fn as_bytes<'a>(&'a self) -> &'a [u8]Retrieve the textual SAM header as bytes
Trait Implementations
impl Debug for HeaderView[src]
impl Debug for HeaderViewfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for HeaderView[src]
impl Clone for HeaderViewfn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Drop for HeaderView[src]
impl Drop for HeaderViewAuto Trait Implementations
impl !Send for HeaderView
impl !Send for HeaderViewimpl !Sync for HeaderView
impl !Sync for HeaderView