Enum cargo::core::compiler::LinkArgTarget
source · pub enum LinkArgTarget {
All,
Cdylib,
Bin,
SingleBin(String),
Test,
Bench,
Example,
}
Expand description
Represents one of the instructions from cargo:rustc-link-arg-*
build
script instruction family.
In other words, indicates targets that custom linker arguments applies to.
See the build script documentation for more.
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§
source§impl LinkArgTarget
impl LinkArgTarget
sourcepub fn applies_to(&self, target: &Target) -> bool
pub fn applies_to(&self, target: &Target) -> bool
Checks if this link type applies to a given Target
.
Trait Implementations§
source§impl Clone for LinkArgTarget
impl Clone for LinkArgTarget
source§fn clone(&self) -> LinkArgTarget
fn clone(&self) -> LinkArgTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinkArgTarget
impl Debug for LinkArgTarget
source§impl Hash for LinkArgTarget
impl Hash for LinkArgTarget
source§impl PartialEq<LinkArgTarget> for LinkArgTarget
impl PartialEq<LinkArgTarget> for LinkArgTarget
source§fn eq(&self, other: &LinkArgTarget) -> bool
fn eq(&self, other: &LinkArgTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LinkArgTarget
impl StructuralEq for LinkArgTarget
impl StructuralPartialEq for LinkArgTarget
Auto Trait Implementations§
impl RefUnwindSafe for LinkArgTarget
impl Send for LinkArgTarget
impl Sync for LinkArgTarget
impl Unpin for LinkArgTarget
impl UnwindSafe for LinkArgTarget
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<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