pub async fn write<P>(dst: P, index: &[Record]) -> Result<()>
Expand description
Writes a CRAM index to a file.
This is a convenience function and is equivalent to creating a file at the given path and writing the index.
ยงExamples
use noodles_cram::crai;
let index = crai::Index::default();
crai::r#async::write("sample.cram.crai", &index).await?;