Skip to main content

read_csv

Function read_csv 

Source
pub fn read_csv(text: &str) -> Result<FlightLog, LogError>
Expand description

Reads an ARTS2 raw CSV export.

§Errors

LogError::NotThisFormat if the first line that isn’t blank isn’t the header; LogError::Syntax for a row that doesn’t hold five numbers, a count out of its range, a flags byte without the barometer’s low bits, or a time not after the row before’s; LogError::NoData if no row follows the header.