Skip to main content

get_rows

Function get_rows 

Source
pub fn get_rows(
    ws: &WorksheetXml,
    sst: &SharedStringTable,
    style_is_date: &[bool],
) -> Result<Vec<(u32, Vec<(u32, CellValue)>)>>
Expand description

Get all rows with their data from a worksheet.

Returns a Vec of (row_number, Vec<(column_number, CellValue)>) tuples. Column numbers are 1-based (A=1, B=2, …). Only rows that contain at least one cell are included (sparse).

style_is_date is a per-style-index flag (from crate::style::compute_style_is_date) that marks which styles carry a date number format. Pass an empty slice to skip date promotion, or the workbook’s precomputed lookup to have t="n" cells with a date format returned as CellValue::Date.