Enum cargo::core::dependency::ArtifactTarget
source · [−]pub enum ArtifactTarget {
BuildDependencyAssumeTarget,
Force(CompileTarget),
}
Variants
BuildDependencyAssumeTarget
Only applicable to build-dependencies, causing them to be built
for the given target (i.e. via --target <triple>
) instead of for the host.
Has no effect on non-build dependencies.
Force(CompileTarget)
The name of the platform triple, like x86_64-apple-darwin
, that this
artifact will always be built for, no matter if it is a build,
normal or dev dependency.
Implementations
sourceimpl ArtifactTarget
impl ArtifactTarget
pub fn parse(target: &str) -> CargoResult<ArtifactTarget>
pub fn to_compile_kind(&self) -> Option<CompileKind>
pub fn to_compile_target(&self) -> Option<CompileTarget>
Trait Implementations
sourceimpl Clone for ArtifactTarget
impl Clone for ArtifactTarget
sourcefn clone(&self) -> ArtifactTarget
fn clone(&self) -> ArtifactTarget
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArtifactTarget
impl Debug for ArtifactTarget
sourceimpl Hash for ArtifactTarget
impl Hash for ArtifactTarget
sourceimpl Ord for ArtifactTarget
impl Ord for ArtifactTarget
sourceimpl PartialEq<ArtifactTarget> for ArtifactTarget
impl PartialEq<ArtifactTarget> for ArtifactTarget
sourcefn eq(&self, other: &ArtifactTarget) -> bool
fn eq(&self, other: &ArtifactTarget) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArtifactTarget) -> bool
fn ne(&self, other: &ArtifactTarget) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ArtifactTarget> for ArtifactTarget
impl PartialOrd<ArtifactTarget> for ArtifactTarget
sourcefn partial_cmp(&self, other: &ArtifactTarget) -> Option<Ordering>
fn partial_cmp(&self, other: &ArtifactTarget) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ArtifactTarget
impl Eq for ArtifactTarget
impl StructuralEq for ArtifactTarget
impl StructuralPartialEq for ArtifactTarget
Auto Trait Implementations
impl RefUnwindSafe for ArtifactTarget
impl Send for ArtifactTarget
impl Sync for ArtifactTarget
impl Unpin for ArtifactTarget
impl UnwindSafe for ArtifactTarget
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.