pub enum LinkType {
All,
Cdylib,
Bin,
SingleBin(String),
Test,
Bench,
Example,
}
Expand description
Represents one of the instruction from cargo:rustc-link-arg-*
build script
instruction family.
In other words, indicates targets that custom linker arguments applies to.
Variants§
All
Represents cargo:rustc-link-arg=FLAG
.
Cdylib
Represents cargo:rustc-cdylib-link-arg=FLAG
.
Bin
Represents cargo:rustc-link-arg-bins=FLAG
.
SingleBin(String)
Represents cargo:rustc-link-arg-bin=BIN=FLAG
.
Test
Represents cargo:rustc-link-arg-tests=FLAG
.
Bench
Represents cargo:rustc-link-arg-benches=FLAG
.
Example
Represents cargo:rustc-link-arg-examples=FLAG
.
Implementations§
Trait Implementations§
source§impl PartialEq<LinkType> for LinkType
impl PartialEq<LinkType> for LinkType
impl Eq for LinkType
impl StructuralEq for LinkType
impl StructuralPartialEq for LinkType
Auto Trait Implementations§
impl RefUnwindSafe for LinkType
impl Send for LinkType
impl Sync for LinkType
impl Unpin for LinkType
impl UnwindSafe for LinkType
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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:16 bytes
Size for each variant:
All
: 0 bytesCdylib
: 0 bytesBin
: 0 bytesSingleBin
: 12 bytesTest
: 0 bytesBench
: 0 bytesExample
: 0 bytes