std::encoding::csvCSV parsing โ pure Hew implementation.
Parse CSV data from strings or files into a table that can be queried by row/column index or column name.
import std::encoding::csv;
fn main() {
let table = csv.parse("name,age\nAlice,30\nBob,25");
let rows = table.rows();
let name = table.get_by_name(0, "name");
println(name); // "Alice"
}
parseParse CSV data from a string (first row is treated as headers).
parse_no_headersParse CSV data from a string without treating the first row as headers.
parse_fileParse CSV data from a file path (first row is treated as headers).
Panics if the file cannot be read.
TableMethodsMethods available on a CSV Table.
Return the number of data rows (excluding the header row).
Return the number of columns.
Return the header name for the given column index.
Return the cell value at the given row and column index.
Return the cell value at the given row for the named column.
No-op for compatibility (struct tables don't need manual freeing).