pub trait Write {
// Required methods
fn write_alignment_header(&mut self, header: &Header) -> Result<()>;
fn write_alignment_record(
&mut self,
header: &Header,
record: &dyn Record,
) -> Result<()>;
fn finish(&mut self, header: &Header) -> Result<()>;
}
Expand description
An alignment writer.
A call to Self::finish
must be made before the writer is dropped.
Required Methods§
Sourcefn write_alignment_header(&mut self, header: &Header) -> Result<()>
fn write_alignment_header(&mut self, header: &Header) -> Result<()>
Writes a SAM header.