calamine
calamine copied to clipboard
RangeDeserializerBuilder example does not works
Hi, I'm following the example to read a columns from a xlsx:
let mut excel: Xlsx<_> = open_workbook(path)?;
let sheet_names = excel.sheet_names();
if sheet_names.len() != 1 {
todo!()
}
let range = excel.worksheet_range(sheet_names[0].as_str())?;
let iter_records =
RangeDeserializerBuilder::with_headers(&["column"])
.from_range(&range)?;
But it fails with:
error[E0283]: type annotations needed for `RangeDeserializer<'_, Data, D>
Please fix the examples :3
Thx!