Enum cargo::core::summary::FeatureValue
source · pub enum FeatureValue {
Feature(InternedString),
Crate(InternedString),
CrateFeature(InternedString, InternedString),
}
Expand description
FeatureValue represents the types of dependencies a feature can have:
- Another feature
- An optional dependency
- A feature in a dependency
The selection between these 3 things happens as part of the construction of the FeatureValue.
Variants
Implementations
sourceimpl FeatureValue
impl FeatureValue
Trait Implementations
sourceimpl Clone for FeatureValue
impl Clone for FeatureValue
sourcefn clone(&self) -> FeatureValue
fn clone(&self) -> FeatureValue
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 moresourceimpl Debug for FeatureValue
impl Debug for FeatureValue
sourceimpl Serialize for FeatureValue
impl Serialize for FeatureValue
Auto Trait Implementations
impl RefUnwindSafe for FeatureValue
impl Send for FeatureValue
impl Sync for FeatureValue
impl Unpin for FeatureValue
impl UnwindSafe for FeatureValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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