pub enum DLLStorageClass {
DefaultStorageClass,
DLLImportStorageClass,
DLLExportStorageClass,
}
Expand description
Represents the DLL storage classes in LLVM, that specifies how a global value,
such as a function or global variable, should be treated with respect to
dynamic link libraries (DLLs) on platforms like Windows. The DLLStorageClass
controls whether a symbol should be imported from a DLL, exported to a DLL, or
treated as a normal global symbol.
Variants§
DefaultStorageClass
DefaultStorageClass
: The default storage class. The symbol is not specifically marked for import or export
from a DLL. It is treated as a normal global symbol.
DLLImportStorageClass
DLLImportStorageClass
: Specifies that the symbol should be imported from a DLL. This is used when you want
to use a function or variable that is defined in another DLL. The linker will ensure that the symbol is correctly
imported at runtime.
DLLExportStorageClass
DLLExportStorageClass
: Specifies that the symbol should be exported to a DLL. This is used when you want to make
a function or variable available for use by other modules or executables. The linker will ensure that the symbol is
correctly exported and accessible to other programs.
Trait Implementations§
source§impl Clone for DLLStorageClass
impl Clone for DLLStorageClass
source§fn clone(&self) -> DLLStorageClass
fn clone(&self) -> DLLStorageClass
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DLLStorageClass
impl Debug for DLLStorageClass
source§impl From<DLLStorageClass> for LLVMDLLStorageClass
impl From<DLLStorageClass> for LLVMDLLStorageClass
source§fn from(storage_class: DLLStorageClass) -> Self
fn from(storage_class: DLLStorageClass) -> Self
source§impl From<LLVMDLLStorageClass> for DLLStorageClass
impl From<LLVMDLLStorageClass> for DLLStorageClass
source§fn from(storage_class: LLVMDLLStorageClass) -> Self
fn from(storage_class: LLVMDLLStorageClass) -> Self
source§impl PartialEq for DLLStorageClass
impl PartialEq for DLLStorageClass
impl Copy for DLLStorageClass
impl Eq for DLLStorageClass
impl StructuralPartialEq for DLLStorageClass
Auto Trait Implementations§
impl Freeze for DLLStorageClass
impl RefUnwindSafe for DLLStorageClass
impl Send for DLLStorageClass
impl Sync for DLLStorageClass
impl Unpin for DLLStorageClass
impl UnwindSafe for DLLStorageClass
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)