pub struct ImportDirectoryMut<'data> {
pub descriptors: &'data mut [ImageImportDescriptor],
}Expand description
Represents a mutable import directory in the PE file.
Fields§
§descriptors: &'data mut [ImageImportDescriptor]Implementations§
Source§impl<'data> ImportDirectoryMut<'data>
impl<'data> ImportDirectoryMut<'data>
Sourcepub fn parse<P: PE>(pe: &'data mut P) -> Result<Self, Error>
pub fn parse<P: PE>(pe: &'data mut P) -> Result<Self, Error>
Parse a mutable import table in the PE file.
Sourcepub fn get_import_map<P: PE>(
&self,
pe: &'data P,
) -> Result<HashMap<&'data str, Vec<ImportData<'data>>>, Error>
pub fn get_import_map<P: PE>( &self, pe: &'data P, ) -> Result<HashMap<&'data str, Vec<ImportData<'data>>>, Error>
Gets a map of DLL names to function names/ordinals in the import directory.
Auto Trait Implementations§
impl<'data> Freeze for ImportDirectoryMut<'data>
impl<'data> RefUnwindSafe for ImportDirectoryMut<'data>
impl<'data> Send for ImportDirectoryMut<'data>
impl<'data> Sync for ImportDirectoryMut<'data>
impl<'data> Unpin for ImportDirectoryMut<'data>
impl<'data> !UnwindSafe for ImportDirectoryMut<'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