Struct noodles_cram::crai::Reader[][src]

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

A CRAM index reader.

Implementations

Creates a CRAM index reader.

Examples

use noodles_cram::crai;
let data = [];
let reader = crai::Reader::new(&data[..]);

Reads a CRAM index.

The position of the stream is expected to be at the start.

Examples

use noodles_cram::crai;
let mut reader = File::open("sample.cram.crai").map(crai::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.