Struct object::read::pe::ImportThunkList
source · pub struct ImportThunkList<'data> { /* private fields */ }
Expand description
A list of import thunks.
These may be in the import lookup table, or the import address table.
Implementations§
source§impl<'data> ImportThunkList<'data>
impl<'data> ImportThunkList<'data>
sourcepub fn get<Pe: ImageNtHeaders>(
&self,
index: usize,
) -> Result<Pe::ImageThunkData>
pub fn get<Pe: ImageNtHeaders>( &self, index: usize, ) -> Result<Pe::ImageThunkData>
Get the thunk at the given index.
sourcepub fn next<Pe: ImageNtHeaders>(&mut self) -> Result<Option<Pe::ImageThunkData>>
pub fn next<Pe: ImageNtHeaders>(&mut self) -> Result<Option<Pe::ImageThunkData>>
Return the first thunk in the list, and update self
to point after it.
Returns Ok(None)
when a null thunk is found.
Trait Implementations§
source§impl<'data> Clone for ImportThunkList<'data>
impl<'data> Clone for ImportThunkList<'data>
source§fn clone(&self) -> ImportThunkList<'data>
fn clone(&self) -> ImportThunkList<'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 moreAuto Trait Implementations§
impl<'data> Freeze for ImportThunkList<'data>
impl<'data> RefUnwindSafe for ImportThunkList<'data>
impl<'data> Send for ImportThunkList<'data>
impl<'data> Sync for ImportThunkList<'data>
impl<'data> Unpin for ImportThunkList<'data>
impl<'data> UnwindSafe for ImportThunkList<'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