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 duplicate 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