pub struct Reader<R> { /* fields omitted */ }
Expand description
A tabix reader.
Consider using crate::read
to read the entire index at once.
Creates a tabix reader.
use noodles_tabix as tabix;;
let reader = File::open("sample.vcf.gz.tbi").map(tabix::Reader::new)?;
Reads the tabix index.
The position of the stream is expected to be at the beginning.
use noodles_tabix as tabix;;
let mut reader = File::open("sample.vcf.gz.tbi").map(tabix::Reader::new)?;
let index = reader.read_index()?;
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.