noodles_vcf::variant::io

Trait Read

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

A variant format reader.

Required Methods§

Source

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

Reads a VCF header.

Source

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

Returns an iterator over records.

Implementors§

Source§

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