Reads standard CSV records into csv::StringRecord⮳ - a weakly typed data representation which expects valid UTF-8 rows. Alternatively,
csv::ByteRecord⮳ makes no assumptions about UTF-8.
CSV files often contain invalid data. For these cases, the csv⮳ crate provides a custom deserializer, csv::invalid_option⮳ which automatically converts invalid data to std::option::Option::None⮳ values.
This example shows how to serialize a Rust tuple. csv::writer⮳ supports automatic serialization from Rust types into CSV records. csv::Writer::write_record⮳ writes a simple record containing string data only. Data with more complex values such as numbers, floats, and options use csv::Writer::serialize⮳. Since CSV writer uses an internal buffer, always explicitly csv::Writer::flush⮳ when done.
Transform a CSV file containing a color name and a hex color into one with a color name and an rgb color. Utilizes the csv⮳ crate to read and write the CSV file, and serde⮳ to deserialize and serialize the rows to and from bytes.