Trait noodles_sam::alignment::io::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,