Struct object::read::coff::ImportFile
source · pub struct ImportFile<'data> {
header: &'data ImportObjectHeader,
kind: ImportType,
dll: ByteString<'data>,
symbol: ByteString<'data>,
import: Option<ByteString<'data>>,
}
Expand description
A Windows short form description of a symbol to import.
Used in Windows import libraries to provide a mapping from a symbol name to a DLL export. This is not an object file.
This is a file that starts with pe::ImportObjectHeader
, and corresponds
to crate::FileKind::CoffImport
.
Fields§
§header: &'data ImportObjectHeader
§kind: ImportType
§dll: ByteString<'data>
§symbol: ByteString<'data>
§import: Option<ByteString<'data>>
Implementations§
source§impl<'data> ImportFile<'data>
impl<'data> ImportFile<'data>
sourcepub fn architecture(&self) -> Architecture
pub fn architecture(&self) -> Architecture
Get the machine type.
sourcepub fn sub_architecture(&self) -> Option<SubArchitecture>
pub fn sub_architecture(&self) -> Option<SubArchitecture>
Get the sub machine type, if available.
sourcepub fn import(&self) -> ImportName<'data>
pub fn import(&self) -> ImportName<'data>
The name exported from the DLL.
sourcepub fn import_type(&self) -> ImportType
pub fn import_type(&self) -> ImportType
The type of import. Usually either a function or data.
Trait Implementations§
source§impl<'data> Clone for ImportFile<'data>
impl<'data> Clone for ImportFile<'data>
source§fn clone(&self) -> ImportFile<'data>
fn clone(&self) -> ImportFile<'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 ImportFile<'data>
impl<'data> RefUnwindSafe for ImportFile<'data>
impl<'data> Send for ImportFile<'data>
impl<'data> Sync for ImportFile<'data>
impl<'data> Unpin for ImportFile<'data>
impl<'data> UnwindSafe for ImportFile<'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