pub enum Offer {
Function,
Variable,
Hidden,
Verbatim,
}Expand description
What an Export tells the linker about its name.
Variants§
Function
A function other DLLs may call.
Variable
A variable other DLLs may read.
Hidden
A name that is left out when the linker exports every name a DLL defines, which is what it
does for a DLL with no dllexport and no .def file. -exclude-symbols:name, which clang
writes for a hidden definition on a mingw-w64 target and which both lld and GNU ld read.
gcc ignores hidden visibility there. This is how the runtime routines of our own that a
DLL links in stay out of its export table, the way libgcc’s do by being named libgcc.
Verbatim
Not a name at all but a whole option, which Export::name holds as the linker reads it.
What #pragma comment(lib) and #pragma comment(linker) ask for, such as
/DEFAULTLIB:ws2_32.lib, which goes in the same section for the same linker to read.
Trait Implementations§
impl Copy for Offer
impl Eq for Offer
impl StructuralPartialEq for Offer
Auto Trait Implementations§
impl Freeze for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.