Struct noodles_vcf::io::indexed_reader::IndexedReader
source · pub struct IndexedReader<R> { /* private fields */ }
Expand description
An indexed VCF reader.
Implementations§
source§impl<R> IndexedReader<R>
impl<R> IndexedReader<R>
source§impl<R> IndexedReader<R>where
R: BufRead,
impl<R> IndexedReader<R>where
R: BufRead,
sourcepub fn read_header(&mut self) -> Result<Header>
pub fn read_header(&mut self) -> Result<Header>
Reads the VCF header.
sourcepub fn read_record_buf(
&mut self,
header: &Header,
record: &mut RecordBuf,
) -> Result<usize>
pub fn read_record_buf( &mut self, header: &Header, record: &mut RecordBuf, ) -> Result<usize>
Reads a single raw VCF record.
sourcepub fn record_bufs<'r, 'h: 'r>(
&'r mut self,
header: &'h Header,
) -> RecordBufs<'r, 'h, R> ⓘ
pub fn record_bufs<'r, 'h: 'r>( &'r mut self, header: &'h Header, ) -> RecordBufs<'r, 'h, R> ⓘ
Returns an iterator over records starting from the current stream position.
sourcepub fn read_record(&mut self, record: &mut Record) -> Result<usize>
pub fn read_record(&mut self, record: &mut Record) -> Result<usize>
Reads a single record without eagerly parsing its fields.
sourcepub fn records(&mut self) -> impl Iterator<Item = Result<Record>> + '_
pub fn records(&mut self) -> impl Iterator<Item = Result<Record>> + '_
Returns an iterator over records.
sourcepub fn index(&self) -> &dyn BinningIndex
pub fn index(&self) -> &dyn BinningIndex
Returns the associated index.
source§impl<R> IndexedReader<R>
impl<R> IndexedReader<R>
source§impl<R> IndexedReader<Reader<R>>where
R: Read,
impl<R> IndexedReader<Reader<R>>where
R: Read,
sourcepub fn new<I>(inner: R, index: I) -> Selfwhere
I: BinningIndex + 'static,
pub fn new<I>(inner: R, index: I) -> Selfwhere
I: BinningIndex + 'static,
Creates an indexed VCF reader.
Auto Trait Implementations§
impl<R> Freeze for IndexedReader<R>where
R: Freeze,
impl<R> !RefUnwindSafe for IndexedReader<R>
impl<R> !Send for IndexedReader<R>
impl<R> !Sync for IndexedReader<R>
impl<R> Unpin for IndexedReader<R>where
R: Unpin,
impl<R> !UnwindSafe for IndexedReader<R>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more