noodles_bcf/
fs.rs

1//! BCF filesystem operations.
2
3mod index;
4
5use std::{fs::File, io, path::Path};
6
7use noodles_bgzf as bgzf;
8
9pub use self::index::index;
10use super::io::Reader;
11
12fn open<P>(src: P) -> io::Result<Reader<bgzf::io::Reader<File>>>
13where
14    P: AsRef<Path>,
15{
16    File::open(src).map(Reader::new)
17}