pub enum Linkage {
External,
Appending,
Internal,
WeakAny,
WeakOdr,
LinkOnceAny,
LinkOnceOdr,
ExternWeak,
Common,
Private,
AvailableExternally,
}Expand description
How a global value links (LLVM’s LinkageTypes, decoded from the bitcode’s linkage codes).
Variants§
External
Visible to other modules (codes 0, 5, 6 and 15).
Appending
Appended to the same-named array of other modules (2).
Internal
Local to the module (3).
WeakAny
Weak, kept even where unreferenced (16).
WeakOdr
Weak, every definition equivalent (17).
LinkOnceAny
Merged with other definitions, dropped where unreferenced (18).
LinkOnceOdr
As LinkOnceAny, every definition equivalent (19).
ExternWeak
A weak reference to an external symbol (7).
Common
A tentative definition (8).
Private
Local to the module and left out of its symbol table (9, 13 and 14).
AvailableExternally
Defined elsewhere, given here for optimisation (12).
Trait Implementations§
impl Copy for Linkage
impl Eq for Linkage
impl StructuralPartialEq for Linkage
Auto Trait Implementations§
impl Forget for Linkage
impl Freeze for Linkage
impl RefUnwindSafe for Linkage
impl Send for Linkage
impl Sync for Linkage
impl Unpin for Linkage
impl UnsafeUnpin 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