Skip to main content

read_export

Function read_export 

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

Reads an RTx CSV or text export.

§Errors

LogError::NotThisFormat if the first line that isn’t blank isn’t either export’s header; LogError::Syntax for a row of other than ten cells or a cell that isn’t its field’s number; LogError::NoData if no row holds a time of day.