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
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 Ord for LinkArgTarget
impl Ord for LinkArgTarget
source§fn cmp(&self, other: &LinkArgTarget) -> Ordering
fn cmp(&self, other: &LinkArgTarget) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LinkArgTarget
impl PartialEq for LinkArgTarget
source§impl PartialOrd for LinkArgTarget
impl PartialOrd for LinkArgTarget
impl Eq for LinkArgTarget
impl StructuralPartialEq for LinkArgTarget
Auto Trait Implementations§
impl Freeze for LinkArgTarget
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§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>,
§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: 24 bytes
Size for each variant:
All
: 0 bytesCdylib
: 0 bytesBin
: 0 bytesSingleBin
: 24 bytesTest
: 0 bytesBench
: 0 bytesExample
: 0 bytes