Struct rust_htslib::bam::IndexedReader
[−]
[src]
pub struct IndexedReader { /* fields omitted */ }
Methods
impl IndexedReader
[src]
fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, IndexedReaderPathError>
[src]
fn from_url(url: &Url) -> Result<Self, IndexedReaderError>
[src]
fn fetch(&mut self, tid: u32, beg: u32, end: u32) -> Result<(), FetchError>
[src]
Trait Implementations
impl Send for IndexedReader
[src]
impl Read for IndexedReader
[src]
fn read(&mut self, record: &mut Record) -> Result<(), ReadError>
[src]
Read next BAM record into given record. Use this method in combination with a single allocated record to avoid the reallocations occurring with the iterator. Read more
fn records(&mut self) -> Records<Self>
[src]
Iterator over the records of the fetched region.
Note that, while being convenient, this is less efficient than pre-allocating a
Record
and reading into it with the read
method, since every iteration involves
the allocation of a new Record
.
fn pileup(&mut self) -> Pileups<Self>
[src]
Iterator over pileups.
fn bgzf(&self) -> *mut Struct_BGZF
[src]
Return the BGZF struct
fn header(&self) -> &HeaderView
[src]
Return the header.
fn seek(&mut self, offset: i64) -> Result<(), SeekError>
[src]
Seek to the given virtual offset in the file
fn tell(&self) -> i64
[src]
Report the current virtual offset