• Home
  • Raw
  • Download

Lines Matching full:csv

2 The `csv` crate provides a fast and flexible CSV reader and writer, with
9 programs that do CSV reading and writing.
21 for reading and writing CSV data respectively.
22 Correspondingly, to support CSV data with custom field or record delimiters
27 depending on whether you're reading or writing CSV data.
29 Unless you're using Serde, the standard CSV record types are
45 Run `cargo add csv` to add the latest version of the `csv` crate to your
54 This example shows how to read CSV data from stdin and print each record to
63 // Build the CSV reader and iterate over each record.
64 let mut rdr = csv::Reader::from_reader(io::stdin());
85 $ git clone git://github.com/BurntSushi/rust-csv
86 $ cd rust-csv
87 $ cargo run --example cookbook-read-basic < examples/data/smallpop.csv
92 This example shows how to read CSV data from stdin into your own custom struct.
94 header record of your CSV data.
108 let mut rdr = csv::Reader::from_reader(io::stdin());
129 $ git clone git://github.com/BurntSushi/rust-csv
130 $ cd rust-csv
131 $ cargo run --example cookbook-read-serde < examples/data/smallpop.csv
168 /// The quoting style to use when writing CSV data.
185 /// This *never* writes quotes, even if it would produce invalid CSV data.
216 /// Use this to specify the record terminator while parsing CSV. The default is
250 /// The whitespace preservation behaviour when reading CSV data.
288 /// When deserializing CSV data, it is sometimes desirable to simply ignore
305 /// This example shows how to parse CSV records with numerical data, even if
315 /// #[serde(deserialize_with = "csv::invalid_option")]
317 /// #[serde(deserialize_with = "csv::invalid_option")]
319 /// #[serde(deserialize_with = "csv::invalid_option")]
329 /// let mut rdr = csv::Reader::from_reader(data.as_bytes());