noodles_sam::alignment::io

Trait Read

Source
pub trait Read<R> {
    // Required methods
    fn read_alignment_header(&mut self) -> Result<Header>;
    fn alignment_records<'a>(
        &'a mut self,
        header: &'a Header,
    ) -> Box<dyn Iterator<Item = Result<Box<dyn Record>>> + 'a>;
}
Expand description

An alignment reader.

Required Methods§

Source

fn read_alignment_header(&mut self) -> Result<Header>

Reads a SAM header.

Source

fn alignment_records<'a>( &'a mut self, header: &'a Header, ) -> Box<dyn Iterator<Item = Result<Box<dyn Record>>> + 'a>

Returns an iterator over records.

Implementors§

Source§

impl<R> Read<R> for Reader<R>
where R: BufRead,