Struct noodles_vcf::indexed_reader::IndexedReader
source · pub struct IndexedReader<R> { /* private fields */ }
Expand description
An indexed VCF reader.
Implementations§
source§impl<R> IndexedReader<R>where
R: Read,
impl<R> IndexedReader<R>where R: Read,
sourcepub fn get_mut(&mut self) -> &mut Reader<R>
pub fn get_mut(&mut self) -> &mut Reader<R>
Returns a mutable reference to the underlying reader.
sourcepub fn into_inner(self) -> Reader<R>
pub fn into_inner(self) -> Reader<R>
Returns the underlying reader.
sourcepub fn read_header(&mut self) -> Result<Header>
pub fn read_header(&mut self) -> Result<Header>
Reads the VCF header.
sourcepub fn read_record(
&mut self,
header: &Header,
record: &mut Record
) -> Result<usize>
pub fn read_record( &mut self, header: &Header, record: &mut Record ) -> Result<usize>
Reads a single raw VCF record.
sourcepub fn records<'r, 'h: 'r>(
&'r mut self,
header: &'h Header
) -> Records<'r, 'h, Reader<R>> ⓘ
pub fn records<'r, 'h: 'r>( &'r mut self, header: &'h Header ) -> Records<'r, 'h, Reader<R>> ⓘ
Returns an iterator over records starting from the current stream position.
sourcepub fn read_lazy_record(&mut self, record: &mut Record) -> Result<usize>
pub fn read_lazy_record(&mut self, record: &mut Record) -> Result<usize>
Reads a single record without eagerly parsing its fields.
Auto Trait Implementations§
impl<R> !RefUnwindSafe for IndexedReader<R>
impl<R> Send for IndexedReader<R>where R: Send,
impl<R> Sync for IndexedReader<R>where R: Sync,
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