Function noodles_cram::crai::write[][src]

pub fn write<P>(dst: P, index: &[Record]) -> Result<()> where
    P: AsRef<Path>, 
Expand description

Writes a CRAM index to a file.

This is a convenience function and is equivalent to creating the file at the given path and writing the index.

Examples

use noodles_cram::crai;
let index = crai::Index::default();
crai::write("sample.cram.crai", &index)?;