[−][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> Clone for Extension<'a>
[src]
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> Unpin for Extension<'a>
impl<'a> Sync for Extension<'a>
impl<'a> Send for Extension<'a>
impl<'a> UnwindSafe for Extension<'a>
impl<'a> RefUnwindSafe for Extension<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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,