Struct noodles::tabix::Reader[][src]

pub struct Reader<R> { /* fields omitted */ }
Expand description

A tabix reader.

Consider using crate::read to read the entire index at once.

Implementations

Creates a tabix reader.

Examples

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.

Examples

use noodles_tabix as tabix;;
let mut reader = File::open("sample.vcf.gz.tbi").map(tabix::Reader::new)?;
let index = reader.read_index()?;

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.