Struct bam::bgzip::write::WriterBuilder[][src]

pub struct WriterBuilder { /* fields omitted */ }
Expand description

Bgzip writer builder. Allows to specify compression level and the number of additional threads.

Implementations

Specify the number of additional threads. Additional threads are used to compress blocks, while the main thread reads the writes to a file/stream. If additional_threads is 0 (default), the main thread will compress blocks itself.

Specify compression level from 0 to 9, where 0 represents no compression, and 9 represents maximal compression. The builder uses 6 as default.

Creates a writer from file.

Creates a writer from stream.

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

Performs the conversion.

Performs the conversion.

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.