[][src]Struct pelite::rich_structure::RichStructure

pub struct RichStructure<'a> { /* fields omitted */ }

Rich structure.

Methods

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

pub fn image(&self) -> &'a [u32][src]

Returns the Rich image without the padding.

pub fn checksum(&self) -> u32[src]

Calculate the checksum.

The checksum should be equal to the xor key.

pub fn xor_key(&self) -> u32[src]

Gets the xor key.

Important traits for RichIter<'a>
pub fn records(&self) -> RichIter<'a>[src]

Gets the records.

pub fn encode(
    &self,
    records: &[RichRecord],
    dest: &mut [u32]
) -> Result<usize, usize>
[src]

Encodes a new set of records.

If the destination does not have the right len, returns Err with the right len. Call encode again with destination of the returned len, destination is not modified.

Returns Ok with the len of the destination when encoding was successful.

Trait Implementations

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

impl<'a> Copy for RichStructure<'a>[src]

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

impl<'a> Serialize for RichStructure<'a>[src]

Auto Trait Implementations

impl<'a> Sync for RichStructure<'a>

impl<'a> Send for RichStructure<'a>

impl<'a> Unpin for RichStructure<'a>

impl<'a> UnwindSafe for RichStructure<'a>

impl<'a> RefUnwindSafe for RichStructure<'a>

Blanket Implementations

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> From<T> for 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]