Skip to main content

read

Function read 

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

Reads the board’s CSV.

§Errors

LogError::NotThisFormat if the first line that isn’t blank isn’t the board’s header; LogError::Syntax for a header naming more than MAX_COLUMNS columns, a column with no name but the first, a name given twice, a row with more cells than the header names, a file whose rows hold too few of the cells its header names, two clock columns that both hold times, or a value too large to hold once converted to its unit; LogError::NoData if no row has a time; LogError::Unit if the clock’s unit isn’t decided (module docs).