pub struct Builder { /* private fields */ }
Expand description
An async FASTA writer builder.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_line_base_count(self, line_base_count: usize) -> Self
pub fn set_line_base_count(self, line_base_count: usize) -> Self
Sets the number of bases per line.
By default, this is set to 80.
§Examples
use noodles_fasta::r#async::io::writer::Builder;
let builder = Builder::default().set_line_base_count(100);
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 FASTA writer from a path.
§Examples
use noodles_fasta::r#async::io::writer::Builder;
let writer = Builder::default().build_from_path("in.fa").await?;
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 FASTA writer from an async writer.
§Examples
use noodles_fasta::r#async::io::writer::Builder;
use tokio::io;
let writer = Builder::default().build_from_writer(io::sink());
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