pub struct Builder { /* private fields */ }
Expand description
An async CRAM writer builder.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn set_reference_sequence_repository(
self,
reference_sequence_repository: Repository,
) -> Self
pub fn set_reference_sequence_repository( self, reference_sequence_repository: Repository, ) -> Self
Sets the reference sequence repository.
Sourcepub fn preserve_read_names(self, value: bool) -> Self
pub fn preserve_read_names(self, value: bool) -> Self
Sets whether to preserve read names.
If false
, read names are discarded.
The default is true
.
Sourcepub fn encode_alignment_start_positions_as_deltas(self, value: bool) -> Self
pub fn encode_alignment_start_positions_as_deltas(self, value: bool) -> Self
Sets whether to encode alignment start positions as deltas.
If false
, record alignment start positions are written with their actual values.
The default is true
.
Sourcepub fn set_block_content_encoder_map(self, map: BlockContentEncoderMap) -> Self
pub fn set_block_content_encoder_map(self, map: BlockContentEncoderMap) -> Self
Sets the block content-encoder map.
Sourcepub async fn build_from_path<P>(self, dst: P) -> Result<Writer<File>>
pub async fn build_from_path<P>(self, dst: P) -> Result<Writer<File>>
Builds an async CRAM writer from a path.
§Examples
use noodles_cram::r#async::io::writer::Builder;
let writer = Builder::default().build_from_path("out.cram").await?;
Sourcepub async fn build_with_path<P>(self, dst: P) -> Result<Writer<File>>
👎Deprecated since 0.68.0: Use Builder::build_from_path
instead.
pub async fn build_with_path<P>(self, dst: P) -> Result<Writer<File>>
Builder::build_from_path
instead.Builds an async CRAM writer from a path.
Sourcepub fn build_from_writer<W>(self, writer: W) -> Writer<W>where
W: AsyncWrite + Unpin,
pub fn build_from_writer<W>(self, writer: W) -> Writer<W>where
W: AsyncWrite + Unpin,
Builds an async CRAM writer from a writer.
§Examples
use noodles_cram as cram;
use tokio::io;
let writer = cram::r#async::io::writer::Builder::default().build_from_writer(io::sink());
Sourcepub fn build_with_writer<W>(self, writer: W) -> Writer<W>where
W: AsyncWrite + Unpin,
👎Deprecated since 0.68.0: Use Builder::build_from_writer
instead.
pub fn build_with_writer<W>(self, writer: W) -> Writer<W>where
W: AsyncWrite + Unpin,
Builder::build_from_writer
instead.Builds an async CRAM writer from a writer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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