Skip to main content

Module csv_table

Module csv_table 

Source
Expand description

CSV to Table — load CSV data directly into a gilt Table.

The basic CsvTable::from_csv_str method works with zero extra dependencies by implementing a simple CSV parser that handles quoted fields. For full CSV support (file reading, streaming), enable the csv feature which uses the csv crate.

§Example

use gilt::csv_table::CsvTable;

let data = "Name,Age,City\nAlice,30,NYC\nBob,25,LA";
let csv = CsvTable::from_csv_str(data).unwrap();
let table = csv.to_table();

Structs§

CsvTable
A CSV dataset that can be converted to a gilt Table for rendering.

Enums§

CsvTableError
Errors that can occur when parsing CSV data.