[−][src]Struct rust_htslib::bam::Writer
A BAM writer.
Methods
impl Writer[src]
pub fn from_path<P: AsRef<Path>>(
path: P,
header: &Header
) -> Result<Self, WriterPathError>[src]
path: P,
header: &Header
) -> Result<Self, WriterPathError>
pub fn from_cram_path<P: AsRef<Path>>(
path: P,
header: &Header
) -> Result<Self, WriterPathError>[src]
path: P,
header: &Header
) -> Result<Self, WriterPathError>
pub fn from_stdout(header: &Header) -> Result<Self, BGZFError>[src]
pub fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>[src]
Activate multi-threaded BAM write support in htslib. This should permit faster writing of large BAM files.
Arguments
n_threads- number of extra background writer threads to use, must be> 0.
pub fn write(&mut self, record: &Record) -> Result<(), WriteError>[src]
pub fn header(&self) -> &HeaderView[src]
Return the header.
pub fn set_reference<P: AsRef<Path>>(
&mut self,
path: P
) -> Result<(), ReferencePathError>[src]
&mut self,
path: P
) -> Result<(), ReferencePathError>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,