Skip to main content

read

Function read 

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

Reads an Eggtimer’s flight data from its text.

§Errors

LogError::NotThisFormat if the first line that isn’t blank isn’t an Eggtimer header row (T, Alt and a name this reader knows); LogError::Syntax for a header column with no name, a row longer than the header, a cell that isn’t a number, an empty time, a time that doesn’t increase, or rows that hold too few of the cells the header names; LogError::NoData if there are no rows.