pub enum FeaturesFor {
NormalOrDevOrArtifactTarget(Option<CompileTarget>),
HostDep,
}
Expand description
Flag to indicate if features are requested for a build dependency or not.
Variants
NormalOrDevOrArtifactTarget(Option<CompileTarget>)
If Some(target)
is present, we represent an artifact target.
Otherwise any other normal or dev dependency.
HostDep
Build dependency or proc-macro.
Implementations
sourceimpl FeaturesFor
impl FeaturesFor
pub fn from_for_host(for_host: bool) -> FeaturesFor
pub fn from_for_host_or_artifact_target(
for_host: bool,
artifact_target: Option<CompileTarget>
) -> FeaturesFor
Trait Implementations
sourceimpl Clone for FeaturesFor
impl Clone for FeaturesFor
sourcefn clone(&self) -> FeaturesFor
fn clone(&self) -> FeaturesFor
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 FeaturesFor
impl Debug for FeaturesFor
sourceimpl Default for FeaturesFor
impl Default for FeaturesFor
sourceimpl Display for FeaturesFor
impl Display for FeaturesFor
sourceimpl Hash for FeaturesFor
impl Hash for FeaturesFor
sourceimpl Ord for FeaturesFor
impl Ord for FeaturesFor
sourceimpl PartialEq<FeaturesFor> for FeaturesFor
impl PartialEq<FeaturesFor> for FeaturesFor
sourcefn eq(&self, other: &FeaturesFor) -> bool
fn eq(&self, other: &FeaturesFor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FeaturesFor) -> bool
fn ne(&self, other: &FeaturesFor) -> bool
This method tests for !=
.
sourceimpl PartialOrd<FeaturesFor> for FeaturesFor
impl PartialOrd<FeaturesFor> for FeaturesFor
sourcefn partial_cmp(&self, other: &FeaturesFor) -> Option<Ordering>
fn partial_cmp(&self, other: &FeaturesFor) -> 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 FeaturesFor
impl Eq for FeaturesFor
impl StructuralEq for FeaturesFor
impl StructuralPartialEq for FeaturesFor
Auto Trait Implementations
impl RefUnwindSafe for FeaturesFor
impl Send for FeaturesFor
impl Sync for FeaturesFor
impl Unpin for FeaturesFor
impl UnwindSafe for FeaturesFor
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.