pub async fn write<P>(dst: P, index: &Index) -> Result<()>
Expand description
Writes a GZ 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_bgzf::gzi;
let index = gzi::Index::default();
gzi::r#async::fs::write("in.gz.gzi", &index).await?;