pub fn read<P>(src: P) -> Result<Vec<Record>, Error>
Expand description
Reads the entire contents of a FASTA index.
This is a convenience function and is equivalent to opening the file at the given path and parsing each record.
§Examples
use noodles_fasta::fai;
let index = fai::read("reference.fa.fai")?;