[][src]Struct pelite::base_relocs::BaseRelocs

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

Base Relocations Directory.

For more information see the module-level documentation.

Methods

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

pub fn parse(relocs: &'a [u8]) -> Result<BaseRelocs<'a>>[src]

Parse a base relocations directory.

Requires relocs argument pointer to have an alignment of 4 or an error is returned.

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

Returns the base relocations image.

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

Iterates over the base relocation blocks.

pub fn for_each<F: FnMut(u32, u8)>(&self, f: F)[src]

Iterates over the base relocations with internal iteration.

pub fn fold<T, F>(&self, init: T, f: F) -> T where
    F: FnMut(T, u32, u8) -> T, 
[src]

Folds over the base relocations with internal iteration.

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<'a> Sync for BaseRelocs<'a>

impl<'a> Send for BaseRelocs<'a>

impl<'a> Unpin for BaseRelocs<'a>

impl<'a> UnwindSafe for BaseRelocs<'a>

impl<'a> RefUnwindSafe for BaseRelocs<'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]