Skip to main content

read

Function read 

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

Reads a log in this layout.

§Errors

LogError::NotThisFormat if the file’s first lines aren’t this layout’s (module docs, Recognition); LogError::Unit if the clock isn’t in a unit of time or baro-altitude in one of length; LogError::Syntax for a header of more than MAX_COLUMNS names, naming a column twice or leaving a name empty, a row of the wrong width, a clock cell that isn’t a number or doesn’t increase, or a reading its unit’s conversion makes infinite, naming the line; LogError::NoData if no row follows the header.