[][src]Struct igc::records::ARecord

pub struct ARecord<'a> {
    pub manufacturer: Manufacturer<'a>,
    pub unique_id: &'a str,
    pub id_extension: Option<&'a str>,
}

Represents the FVU ID record

Fields

manufacturer: Manufacturer<'a>unique_id: &'a strid_extension: Option<&'a str>

Methods

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

pub fn new(
    manufacturer: Manufacturer<'a>,
    unique_id: &'a str,
    id_extension: Option<&'a str>
) -> ARecord<'a>
[src]

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

Parse an IGC A Record string

let record = ARecord::parse("ACAMWatFoo").unwrap();
assert_eq!(record.manufacturer, Manufacturer::CambridgeAeroInstruments);
assert_eq!(record.unique_id, "Wat");
assert_eq!(record.id_extension, Some("Foo"));

Trait Implementations

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

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

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

impl<'a> Display for ARecord<'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 ARecord<'a>

impl<'a> Sync for ARecord<'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]