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<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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key
and return true
if they are equal.