pub struct IndexedReader<R> { /* private fields */ }
Expand description
An indexed BAM reader.
Implementations§
Source§impl<R> IndexedReader<R>
impl<R> IndexedReader<R>
Source§impl<R> IndexedReader<R>where
R: Read,
impl<R> IndexedReader<R>where
R: Read,
Sourcepub fn read_header(&mut self) -> Result<Header>
pub fn read_header(&mut self) -> Result<Header>
Reads the SAM 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 record into an alignment record buffer.
Sourcepub fn read_record(&mut self, record: &mut Record) -> Result<usize>
pub fn read_record(&mut self, record: &mut Record) -> Result<usize>
Reads a record.
Sourcepub fn record_bufs<'a>(&'a mut self, header: &'a Header) -> RecordBufs<'_, R> ⓘ
pub fn record_bufs<'a>(&'a mut self, header: &'a Header) -> RecordBufs<'_, R> ⓘ
Returns an iterator over alignment record buffers starting from the current stream position.
Sourcepub fn index(&self) -> &dyn BinningIndex
pub fn index(&self) -> &dyn BinningIndex
Returns the associated index.
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 BAM 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