Trait noodles_sam::alignment::io::Write

source ·
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§

source

fn write_alignment_header(&mut self, header: &Header) -> Result<()>

Writes a SAM header.

source

fn write_alignment_record( &mut self, header: &Header, record: &dyn Record ) -> Result<()>

Writes an alignment record.

source

fn finish(&mut self, header: &Header) -> Result<()>

Shuts down an alignment writer.

Implementors§

source§

impl<W> Write for Writer<W>
where W: Write,