noodles_sam::alignment::io

Trait 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,