std::encoding::csv¶
Status: experimental
CSV record reader and writer.
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
parse_line |
fn parse_line(line: String) -> Vec<String> |
Parses a single CSV-formatted line. |
read |
fn read(text: String) -> Result<Vec<Vec<String>>, errors::Error> |
Parses all CSV records from a string. |
write |
fn write(rows: Vec<Vec<String>>) -> String |
Serialises records as a CSV string. |