Exports

Struct Exports 

Source
pub struct Exports<'a, P> { /* private fields */ }
Expand description

Export directory.

For more information see the module-level documentation.

Implementations§

Source§

impl<'a, P: Pe<'a>> Exports<'a, P>

Source

pub fn pe(&self) -> P

Gets the PE instance.

Source

pub fn image(&self) -> &'a IMAGE_EXPORT_DIRECTORY

Returns the underlying export directory image.

Source

pub fn dll_name(&self) -> Result<&'a CStr>

Gets the export directory’s name for this library.

Source

pub fn ordinal_base(&self) -> Ordinal

Gets the ordinal base for the exported functions.

Source

pub fn functions(&self) -> Result<&'a [Rva]>

Gets the export address table.

Source

pub fn names(&self) -> Result<&'a [Rva]>

Gets the name address table.

The values are RVAs to the exported function’s name, to find its export look at the name index table with the same index.

The names are sorted allowing binary search lookup.

Source

pub fn name_indices(&self) -> Result<&'a [u16]>

Gets the name index table.

The values are indices (not ordinals!) into the export address table matching name with the same index in the name address table.

Source

pub fn by(&self) -> Result<By<'a, P>>

Query the exports.

This specifically validates whether the functions, names and name indices are valid.

Trait Implementations§

Source§

impl<'a, P: Clone> Clone for Exports<'a, P>

Source§

fn clone(&self) -> Exports<'a, P>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, P: Pe<'a>> Debug for Exports<'a, P>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a, P: Copy> Copy for Exports<'a, P>

Auto Trait Implementations§

§

impl<'a, P> Freeze for Exports<'a, P>
where P: Freeze,

§

impl<'a, P> RefUnwindSafe for Exports<'a, P>
where P: RefUnwindSafe,

§

impl<'a, P> Send for Exports<'a, P>
where P: Send,

§

impl<'a, P> Sync for Exports<'a, P>
where P: Sync,

§

impl<'a, P> Unpin for Exports<'a, P>
where P: Unpin,

§

impl<'a, P> UnwindSafe for Exports<'a, P>
where P: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.