[−][src]Struct igc::records::Extension
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: u8
end_byte: u8
mnemonic: &'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> PartialEq<Extension<'a>> for Extension<'a>
[src]
impl<'a> Clone for Extension<'a>
[src]
fn clone(&self) -> 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> Display for Extension<'a>
[src]
impl<'a> Debug for Extension<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,