Enum rustc_codegen_llvm::llvm::Linkage
source · #[repr(C)]pub enum Linkage {
ExternalLinkage,
AvailableExternallyLinkage,
LinkOnceAnyLinkage,
LinkOnceODRLinkage,
WeakAnyLinkage,
WeakODRLinkage,
AppendingLinkage,
InternalLinkage,
PrivateLinkage,
ExternalWeakLinkage,
CommonLinkage,
}
Expand description
LLVMRustLinkage
Variants§
ExternalLinkage
AvailableExternallyLinkage
LinkOnceAnyLinkage
LinkOnceODRLinkage
WeakAnyLinkage
WeakODRLinkage
AppendingLinkage
InternalLinkage
PrivateLinkage
ExternalWeakLinkage
CommonLinkage
Trait Implementations§
source§impl PartialEq<Linkage> for Linkage
impl PartialEq<Linkage> for Linkage
impl Copy for Linkage
impl StructuralPartialEq for Linkage
Auto Trait Implementations§
impl RefUnwindSafe for Linkage
impl Send for Linkage
impl Sync for Linkage
impl Unpin for Linkage
impl UnwindSafe for Linkage
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
ExternalLinkage
: 0 bytesAvailableExternallyLinkage
: 0 bytesLinkOnceAnyLinkage
: 0 bytesLinkOnceODRLinkage
: 0 bytesWeakAnyLinkage
: 0 bytesWeakODRLinkage
: 0 bytesAppendingLinkage
: 0 bytesInternalLinkage
: 0 bytesPrivateLinkage
: 0 bytesExternalWeakLinkage
: 0 bytesCommonLinkage
: 0 bytes