Enum cargo::core::compiler::custom_build::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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
§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
§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
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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: 32 bytes
Size for each variant:
All
: 0 bytesCdylib
: 0 bytesBin
: 0 bytesSingleBin
: 24 bytesTest
: 0 bytesBench
: 0 bytesExample
: 0 bytes