pub fn open_workbook<R, P>(path: P) -> Result<R, R::Error>
where
    R: Reader<RS = BufReader<File>>,
    P: AsRef<Path>,
{
    let file = BufReader::new(File::open(path)?);
    R::new(file)
}
/// Convenient function to open a file with a BufReader<File>
Convenient function to open a file with a BufReader
Convenient function to open a file with a BufReader
pub fn open_workbook<R, P>(path: P) -> Result<R, R::Error>
where
    R: Reader<RS = BufReader<File>>,
    P: AsRef<Path>,
{
    let file = BufReader::new(File::open(path)?);
    R::new(file)
}
pub fn open_workbook < R , P > ( path : P ) -> Result < R , R :: Error > where R : Reader < RS = BufReader < File > > , P : AsRef < Path > , { let file = BufReader :: new ( File :: open ( path ) ? ) ; R :: new ( file ) }
Convenient function to open a file with a BufReader<File>
Convenient function to open a file with a BufReader<File >
path
P