Struct bio::io::fasta::Writer
[−]
[src]
pub struct Writer<W: Write> { // some fields omitted }
A Fasta writer.
Methods
impl Writer<File>
[src]
impl<W: Write> Writer<W>
[src]
fn new(writer: W) -> Self
Create a new Fasta writer.
fn write_record(&mut self, record: &Record) -> Result<()>
Directly write a Fasta record.
fn write(&mut self, id: &str, desc: Option<&str>, seq: TextSlice) -> Result<()>
Write a Fasta record with given id, optional description and sequence.
fn flush(&mut self) -> Result<()>
Flush the writer, ensuring that everything is written.