Expand description
Delimited text tables (CSV, RFC 4180).
Fields may be quoted with ", and quoted fields may contain the delimiter, line breaks and
doubled quotes ("" for a literal "). Records end with LF or CRLF; a trailing line break is
optional. Writing quotes exactly the fields that need it.
See the book entry Data files.
Structs§
- CsvTable
- A parsed table: an optional header row and the records, all as strings.
Functions§
- format_
csv - Formats a table as delimited text with LF line endings.
- format_
csv_ f64 - Formats numeric rows (with an optional header); numbers use Rust’s shortest round-trip representation, so parsing the text back recovers them exactly.
- parse_
csv - Parses delimited text. With
has_headerthe first record becomes the header. - read_
csv_ file - Reads a delimited text file.
- write_
csv_ file - Writes a delimited text file.