Skip to main content

read

Function read 

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

Reads a phone app’s launch….csv from its text.

§Errors

LogError::NotThisFormat if the first line that isn’t blank isn’t the app’s header; LogError::Syntax for a header naming a column twice or leaving a name empty, a row of the wrong width, a cell that isn’t a number, a time that is missing or doesn’t increase, or a value its unit’s conversion makes infinite, naming the line; LogError::NoData if no row follows the header.