Function umya_spreadsheet::reader::xlsx::lazy_read

source ·
pub fn lazy_read(path: &Path) -> Result<Spreadsheet, XlsxError>
Expand description

lazy read spreadsheet file. Delays the loading of the worksheet until it is needed. When loading a file with a large amount of data, response improvement can be expected.

§Arguments

  • path - file path to read.

§Return value

  • Result - OK is Spreadsheet. Err is error message.

§Examples

let path = std::path::Path::new("./tests/test_files/aaa.xlsx");
let mut book = umya_spreadsheet::reader::xlsx::lazy_read(path).unwrap();