[][src]Struct igc::records::Extension

pub struct Extension<'a> {
    pub start_byte: u8,
    pub end_byte: u8,
    pub mnemonic: &'a str,
}

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

The start and end bytes are defined as being 1-indexed including the initial record type discrimination character.

Fields

start_byte: u8end_byte: u8mnemonic: &'a str

Methods

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

pub const STRING_LENGTH: usize[src]

pub fn new(mnemonic: &'a str, start_byte: u8, end_byte: u8) -> Self[src]

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

Parse an single extension definition string.

Expected format: SSEEMMM SS - start byte - 0-9 EE - end byte - 0-9 MMM - mnemonic - 0-9 a-z A-Z

Trait Implementations

impl<'a> Clone for Extension<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

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

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

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

Auto Trait Implementations

impl<'a> Send for Extension<'a>

impl<'a> Sync for Extension<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]