#[repr(u8)]pub enum Linkage {
Show 15 variants
External = 0,
Weak = 1,
Appending = 2,
Internal = 3,
Linkonce = 4,
Dllimport = 5,
Dllexport = 6,
ExternWeak = 7,
Common = 8,
Private = 9,
WeakOdr = 10,
LinkonceOdr = 11,
AvailableExternally = 12,
Deprecated1 = 13,
Deprecated2 = 14,
}Expand description
These are bitcode-specific values, different from C++ enum
Variants§
External = 0
Externally visible function
Weak = 1
Appending = 2
Special purpose, only applies to global arrays
Internal = 3
Rename collisions when linking (static functions).
Linkonce = 4
Dllimport = 5
👎Deprecated
Externally visible function Obsolete DLLImportLinkage
Dllexport = 6
👎Deprecated
Externally visible function Obsolete DLLExportLinkage
ExternWeak = 7
ExternalWeak linkage description.
Common = 8
Tentative definitions.
Private = 9
Like Internal, but omit from symbol table.
WeakOdr = 10
LinkonceOdr = 11
AvailableExternally = 12
Available for inspection, not emission.
Deprecated1 = 13
Deprecated2 = 14
Trait Implementations§
Auto Trait Implementations§
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