pub struct ImportLibrary { /* private fields */ }Expand description
Windows import library generator
Implementations§
Source§impl ImportLibrary
impl ImportLibrary
Sourcepub fn new(
def: &str,
machine: MachineType,
flavor: Flavor,
) -> Result<Self, Error>
pub fn new( def: &str, machine: MachineType, flavor: Flavor, ) -> Result<Self, Error>
Create new import library generator from module definition text content
Sourcepub fn new_arm64x(
def: &str,
native_def: &str,
flavor: Flavor,
) -> Result<Self, Error>
pub fn new_arm64x( def: &str, native_def: &str, flavor: Flavor, ) -> Result<Self, Error>
Create new ARM64X import library generator from two module definition
text contents: def describes the ARM64EC/x64-compatible exports and
native_def describes the pure ARM64 exports. The resulting archive
can be linked from both ARM64 and ARM64EC consumers.
Sourcepub fn from_def(def: ModuleDef, machine: MachineType, flavor: Flavor) -> Self
pub fn from_def(def: ModuleDef, machine: MachineType, flavor: Flavor) -> Self
Create new import library generator from ModuleDef
Sourcepub fn from_defs(
def: ModuleDef,
native_def: Option<ModuleDef>,
machine: MachineType,
flavor: Flavor,
) -> Self
pub fn from_defs( def: ModuleDef, native_def: Option<ModuleDef>, machine: MachineType, flavor: Flavor, ) -> Self
Create new import library generator from a primary ModuleDef and an
optional native ModuleDef. The native def is only meaningful for
MachineType::ARM64X; for other machine types it is ignored.
Sourcepub fn import_name(&self) -> &str
pub fn import_name(&self) -> &str
Get import library name
Trait Implementations§
Source§impl Clone for ImportLibrary
impl Clone for ImportLibrary
Source§fn clone(&self) -> ImportLibrary
fn clone(&self) -> ImportLibrary
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 Freeze for ImportLibrary
impl RefUnwindSafe for ImportLibrary
impl Send for ImportLibrary
impl Sync for ImportLibrary
impl Unpin for ImportLibrary
impl UnsafeUnpin for ImportLibrary
impl UnwindSafe for ImportLibrary
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