[][src]Struct igc::records::BRecord

pub struct BRecord<'a> {
    pub timestamp: Time,
    pub pos: RawPosition,
    pub fix_valid: FixValid,
    pub pressure_alt: i16,
    pub gps_alt: i16,
    // some fields omitted
}

A Fix record

Only the fields for { timestamp, lat, lon, fix_valid, pressure_altitude, gps_altitude} are stored. Any/all other fields are optional and defined in an I Record, and are not hanled yet.

The type for the altitudes doesn't techincally cover the complete range of representable altitudes in a conformant IGC file, but to exceed it you would have to beat the Perlan Project's objective altitude (90,000ft, unachieved at the time of writing) by >15,000ft.

Fields

timestamp: Timepos: RawPositionfix_valid: FixValidpressure_alt: i16gps_alt: i16

Methods

impl<'a> BRecord<'a>[src]

pub fn parse(line: &'a str) -> Result<Self, ParseError>[src]

Parse an IGC B record string.

let record = BRecord::parse("B0941145152265N00032642WA0011500115").unwrap();
assert_eq!(record.timestamp, Time::from_hms(9, 41, 14));

Trait Implementations

impl<'a> Extendable for BRecord<'a>[src]

fn get_extension<'a, 'b>(
    &'a self,
    extension: &'b Extension<'a>
) -> Result<&'a str, ParseError>
[src]

Get a given extension from the record implementing this trait.

impl<'a> Eq for BRecord<'a>[src]

impl<'a> PartialEq<BRecord<'a>> for BRecord<'a>[src]

impl<'a> Debug for BRecord<'a>[src]

impl<'a> Display for BRecord<'a>[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats this record as it should appear in an IGC file.

Auto Trait Implementations

impl<'a> Send for BRecord<'a>

impl<'a> Sync for BRecord<'a>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]