[][src]Module igc::records

Low level record parsing API

use igc::records::{DataSource, Record};
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

ARecord

Represents the FVU ID record

BRecord

A Fix record

CRecordDeclaration

The first flavor of C Record - a task record which defines some properties of the whole task.

CRecordTurnpoint

The second flavor of C Record - a start / turn / end point for a task.

DRecord

Differential GPS record - indicates that Differential GPS is being used.

ERecord

Describes an event logged during the flight, associated with the B Record immediately following.

Extension

Defines a generic record extension, as appears in I and J records.

FRecord

A record indicating a change in the satellite constellation being used.

GRecord

A security record.

HRecord

A header information record.

IRecord
JRecord
KRecord

An extension data record.

LRecord

A simple plaintext log, used by some manufacturers for propietary extensions.

Enums

DataSource

Enumeration of the different sources an H record can come from.

FixValid

Possible values for the "fix valid" field of a B record

Record

Sum type of all possible records in an IGC file.

Traits

Extendable

Implemented by records which support having extensions