Struct rust_htslib::bam::HeaderView
source · [−]pub struct HeaderView { /* private fields */ }
Implementations
sourceimpl 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]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
pub fn target_count(&self) -> u32
pub fn target_names(&self) -> Vec<&[u8]>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn target_len(&self, tid: u32) -> Option<u64>
Trait Implementations
sourceimpl Clone for HeaderView
impl Clone for HeaderView
sourceimpl Debug for HeaderView
impl Debug for HeaderView
Auto Trait Implementations
impl RefUnwindSafe for HeaderView
impl !Send for HeaderView
impl !Sync for HeaderView
impl Unpin for HeaderView
impl UnwindSafe for HeaderView
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more