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.
parse_implParse CSV data with optional header row handling.
parse_csv_lineParse a single CSV line into fields, handling quoted fields.
find_headerFind the column index for a header name. Returns -1 if not found.
TableA parsed CSV table with headers and data rows.
TableMethodsMethods available on a CSV Table.