/
germanubis
/
rust-csv
Обзор
Документация
Войти
/
germanubis
/
rust-csv
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/tutorial-setup-01.rs
16 строк
602 B
Andrew Gallant
doc: update examples
27 июн 2019, 02:51
27 июн 2019, 02:51
775b836
Код
Авторство
О чём код?
// Import the standard library's I/O module so we can read from stdin. use std::io; // The `main` function is where your program starts executing. fn main() { // Create a CSV parser that reads data from stdin. let mut rdr = csv::Reader::from_reader(io::stdin()); // Loop over each record. for result in rdr.records() { // An error may occur, so abort the program in an unfriendly way. // We will make this more friendly later! let record = result.expect("a CSV record"); // Print a debug version of the record. println!("{:?}", record); } }