[−][src]Struct pelite::rich_structure::RichStructure
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]
ⓘImportant traits for RichIter<'a>
Gets the records.
pub fn encode(
&self,
records: &[RichRecord],
dest: &mut [u32]
) -> Result<usize, usize>
[src]
&self,
records: &[RichRecord],
dest: &mut [u32]
) -> Result<usize, usize>
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]
fn clone(&self) -> RichStructure<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
U: From<T>,
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> From<T> for 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,