pub enum Keep {
One,
Any,
SameSize,
SameContents,
Largest,
Newest,
}Expand description
How the linker picks the copy of a Group it keeps, in the words gas and llvm-mc take for
each of COFF’s selection numbers.
Variants§
One
one_only: there must be only one, and two is an error.
Any
discard: any one, and the rest are dropped. What a .refptr. pointer is.
SameSize
same_size: any one, and two of different sizes are an error.
SameContents
same_contents: any one, and two with different bytes are an error.
Largest
largest: the biggest one.
Newest
newest: the newest one, which no toolchain writes and link.exe does not implement.
Implementations§
Trait Implementations§
impl Copy for Keep
impl Eq for Keep
impl StructuralPartialEq for Keep
Auto Trait Implementations§
impl Freeze for Keep
impl RefUnwindSafe for Keep
impl Send for Keep
impl Sync for Keep
impl Unpin for Keep
impl UnsafeUnpin for Keep
impl UnwindSafe for Keep
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
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
Compare self to
key and return true if they are equal.