Enum object::read::pe::ExportTarget
source · pub enum ExportTarget<'data> {
Address(u32),
ForwardByOrdinal(&'data [u8], u32),
ForwardByName(&'data [u8], &'data [u8]),
}
Expand description
Where an export is pointing to.
Variants§
Address(u32)
The address of the export, relative to the image base.
ForwardByOrdinal(&'data [u8], u32)
Forwarded to an export ordinal in another DLL.
This gives the name of the DLL, and the ordinal.
ForwardByName(&'data [u8], &'data [u8])
Forwarded to an export name in another DLL.
This gives the name of the DLL, and the export name.
Implementations§
source§impl<'data> ExportTarget<'data>
impl<'data> ExportTarget<'data>
sourcepub fn is_address(&self) -> bool
pub fn is_address(&self) -> bool
Returns true if the target is an address.
sourcepub fn is_forward(&self) -> bool
pub fn is_forward(&self) -> bool
Returns true if the export is forwarded to another DLL.
Trait Implementations§
source§impl<'data> Clone for ExportTarget<'data>
impl<'data> Clone for ExportTarget<'data>
source§fn clone(&self) -> ExportTarget<'data>
fn clone(&self) -> ExportTarget<'data>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ExportTarget<'a>
impl<'a> Debug for ExportTarget<'a>
impl<'data> Copy for ExportTarget<'data>
Auto Trait Implementations§
impl<'data> Freeze for ExportTarget<'data>
impl<'data> RefUnwindSafe for ExportTarget<'data>
impl<'data> Send for ExportTarget<'data>
impl<'data> Sync for ExportTarget<'data>
impl<'data> Unpin for ExportTarget<'data>
impl<'data> UnwindSafe for ExportTarget<'data>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)