[][src]Struct rust_htslib::bam::HeaderView

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 from_bytes(header_string: &[u8]) -> Self[src]

Create a new HeaderView from bytes

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_mut(&mut self) -> &mut bam_hdr_t[src]

pub fn inner_ptr_mut(&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(&self) -> &[u8][src]

Retrieve the textual SAM header as bytes

Trait Implementations

impl Clone for HeaderView[src]

impl Debug for HeaderView[src]

impl Drop for HeaderView[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.