Struct rust_htslib::bam::Writer

source ·
pub struct Writer { /* private fields */ }
Expand description

A BAM writer.

Implementations§

Create a new BAM file.

Arguments
  • path - the path.
  • header - header definition to use

Create a new BAM file at STDOUT.

Arguments
  • header - header definition to use

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.

Write record to BAM.

Arguments
  • record - the record to write

Return the header.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.