noodles_cram::async::io::writer

Struct Builder

Source
pub struct Builder { /* private fields */ }
Expand description

An async CRAM writer builder.

Implementations§

Source§

impl Builder

Source

pub fn set_reference_sequence_repository( self, reference_sequence_repository: Repository, ) -> Self

Sets the reference sequence repository.

Source

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.

Source

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.

Source

pub fn set_block_content_encoder_map(self, map: BlockContentEncoderMap) -> Self

Sets the block content-encoder map.

Source

pub async fn build_from_path<P>(self, dst: P) -> Result<Writer<File>>
where P: AsRef<Path>,

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?;
Source

pub async fn build_with_path<P>(self, dst: P) -> Result<Writer<File>>
where P: AsRef<Path>,

👎Deprecated since 0.68.0: Use Builder::build_from_path instead.

Builds an async CRAM writer from a path.

Source

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());
Source

pub 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.

Builds an async CRAM writer from a writer.

Trait Implementations§

Source§

impl Default for Builder

Source§

fn default() -> Builder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.