Module igc::records

source ·
Expand description

Low level record parsing API

use igc::records::{Record,DataSource};
match Record::parse_line("HFFTYFRTYPE:LXNAV,LX8000F") {
    Ok(Record::H(header_rec)) => {
        assert_eq!(header_rec.data_source, DataSource::FVU);
        assert_eq!(header_rec.mnemonic, "FTY");
        assert_eq!(header_rec.friendly_name, Some("FRTYPE"));
        assert_eq!(header_rec.data, "LXNAV,LX8000F");
    }
    _ => unreachable!(),
}

Structs

Represents the FVU ID record
A Fix record
The first flavor of C Record - a task record which defines some properties of the whole task.
The second flavor of C Record - a start / turn / end point for a task.
Differential GPS record - indicates that Differential GPS is being used.
Describes an event logged during the flight, associated with the B Record immediately following.
Defines a generic record extension, as appears in I and J records.
A record defining a set of extensions (either an I or a J record)
A record indicating a change in the satellite constellation being used.
A security record.
A header information record.
An extension data record.
A simple plaintext log, used by some manufacturers for propietary extensions.

Enums

Enumeration of the different sources an H record can come from.
Enumeration of all FVU manufacturers defined in the IGC specification v1.00
Sum type of all possible records in an IGC file.

Traits

Implemented by records which support having extensions