[−][src]Struct igc::records::BRecord
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: Time
pos: RawPosition
fix_valid: FixValid
pressure_alt: i16
gps_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]
const BASE_LENGTH: usize
[src]
fn extension_string(&self) -> &str
[src]
fn get_extension<'a, 'b>(
&'a self,
extension: &'b Extension<'a>
) -> Result<&'a str, ParseError>
[src]
&'a self,
extension: &'b Extension<'a>
) -> Result<&'a str, ParseError>
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]
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,