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 more