Struct lief::pe::import::Import

pub struct Import<'a> { /* private fields */ }

Implementations§

§

impl Import<'_>

pub fn entries(&self) -> ImportEntries<'_>

Iterator over the ImportEntry

pub fn forwarder_chain(&self) -> u32

The index of the first forwarder reference

pub fn timedatestamp(&self) -> u32

The stamp that is set to zero until the image is bound. After the image is bound, this field is set to the time/data stamp of the DLL

pub fn import_address_table_rva(&self) -> u32

The RVA of the import address table (IAT). The content of this table is identical to the content of the Import Lookup Table (ILT) until the image is bound.

This address could change when re-building the binary

pub fn import_lookup_table_rva(&self) -> u32

Return the relative virtual address of the import lookup table

This address could change when re-building the binary

pub fn name(&self) -> String

Return the library’s name (e.g. kernel32.dll)

pub fn directory(&self) -> Option<DataDirectory<'_>>

Return the DataDirectory associated with this import.

pub fn iat_directory(&self) -> Option<DataDirectory<'_>>

Return the DataDirectory associated with the IAT (import address table).

pub fn entry_by_name(&self, name: &str) -> Option<ImportEntry<'_>>

Try to find an ImportEntry by its name

Trait Implementations§

§

impl Debug for Import<'_>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Import<'a>

§

impl<'a> !Send for Import<'a>

§

impl<'a> !Sync for Import<'a>

§

impl<'a> Unpin for Import<'a>

§

impl<'a> UnwindSafe for Import<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.