pub struct Writer<'a, W: Write> { /* private fields */ }
Expand description
Writes to a file in the FASTA format.
Implementations§
source§impl<'a, W: Write> Writer<'a, W>
impl<'a, W: Write> Writer<'a, W>
sourcepub fn new(write: W, separator: &'a str, wrap: bool) -> Self
pub fn new(write: W, separator: &'a str, wrap: bool) -> Self
Constructs a writer from the specified Write. Items are printed separated by separator.
sourcepub fn write_record(&mut self, record: Record) -> Result<()>
pub fn write_record(&mut self, record: Record) -> Result<()>
Convenience method, see write_record_ref.
sourcepub fn write_record_ref(&mut self, record: &Record) -> Result<()>
pub fn write_record_ref(&mut self, record: &Record) -> Result<()>
Writes a Record to the Write, in FASTA format
Auto Trait Implementations§
impl<'a, W> RefUnwindSafe for Writer<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for Writer<'a, W>where
W: Send,
impl<'a, W> Sync for Writer<'a, W>where
W: Sync,
impl<'a, W> Unpin for Writer<'a, W>where
W: Unpin,
impl<'a, W> UnwindSafe for Writer<'a, W>where
W: UnwindSafe,
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