Skip to main content

serialize_csv

Function serialize_csv 

Source
pub fn serialize_csv(
    rows: &[(u32, Vec<(u32, CellValue)>)],
) -> Result<Vec<u8>, Error>
Expand description

Serializes sparse typed rows as spreadsheet-safe CSV.

The result is staged completely before it is returned. Records are separated by LF without a trailing terminator. Formula cells export their expressions regardless of cached results, and formula-capable textual fields are neutralized before quoting. Row and column coordinates must be in-grid, strictly increasing, and unique.