Trait bam::RecordWriter [−][src]
pub trait RecordWriter {
fn write(&mut self, record: &Record) -> Result<()>;
fn finish(&mut self) -> Result<()>;
fn flush(&mut self) -> Result<()>;
}Expand description
A trait for writing BAM/SAM records.
Required methods
Finishes the stream, same as std::mem::drop(writer), but can return an error.
