pub struct HeaderView { /* private fields */ }
Implementations§
Source§impl HeaderView
impl HeaderView
Sourcepub fn from_header(header: &Header) -> Self
pub fn from_header(header: &Header) -> Self
Create a new HeaderView from a pre-populated Header object
Sourcepub fn from_bytes(header_string: &[u8]) -> Self
pub fn from_bytes(header_string: &[u8]) -> Self
Create a new HeaderView from bytes
Sourcepub fn new(inner: *mut bam_hdr_t) -> Self
pub fn new(inner: *mut bam_hdr_t) -> Self
Create a new HeaderView from the underlying Htslib type, and own it.
pub fn inner(&self) -> &bam_hdr_t
pub fn inner_ptr(&self) -> *const bam_hdr_t
pub fn inner_mut(&mut self) -> &mut bam_hdr_t
pub fn inner_ptr_mut(&mut self) -> *mut bam_hdr_t
pub fn tid(&self, name: &[u8]) -> Option<u32>
pub fn tid2name(&self, tid: u32) -> &[u8] ⓘ
pub fn target_count(&self) -> u32
pub fn target_names(&self) -> Vec<&[u8]>
pub fn target_len(&self, tid: u32) -> Option<u64>
Trait Implementations§
Source§impl Clone for HeaderView
impl Clone for HeaderView
Source§impl Debug for HeaderView
impl Debug for HeaderView
Auto Trait Implementations§
impl Freeze for HeaderView
impl RefUnwindSafe for HeaderView
impl !Send for HeaderView
impl !Sync for HeaderView
impl Unpin for HeaderView
impl UnwindSafe for HeaderView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more