Skip to main content

read_text

Function read_text 

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

Reads an Eggtimer TRS’s flight from its terminal download: the flight settings and the flight summary, then the table the CSV download writes, read as read reads it.

§Errors

LogError::NotThisFormat if no title Eggtimer … Flight Settings comes before an Eggtimer header row within the first MAX_PREAMBLE_LINES lines that aren’t blank; otherwise what read refuses in the table, naming the file’s line; LogError::Unit on the header’s line for a clock its step and the coast don’t both bear out (module docs, The coast check).