[][src]Struct xinto::Record

pub struct Record {
    pub length: u8,
    pub load_offset: u16,
    pub type: u8,
    pub data: Vec<u8>,
    pub checksum: u8,
}

Fields

length: u8load_offset: u16type: u8data: Vec<u8>checksum: u8

Methods

impl Record[src]

pub fn end_of_file() -> Self[src]

pub fn parse(input: &str) -> Result<Record, RecordParsingError>[src]

pub fn verify_checksum(&self) -> bool[src]

pub fn from_file(filename: &str) -> Result<Vec<Record>, FileParsingError>[src]

Trait Implementations

impl Debug for Record[src]

impl<'de> Deserialize<'de> for Record[src]

impl PartialEq<Record> for Record[src]

impl Serialize for Record[src]

impl StructuralPartialEq for Record[src]

Auto Trait Implementations

impl RefUnwindSafe for Record

impl Send for Record

impl Sync for Record

impl Unpin for Record

impl UnwindSafe for Record

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.