pub enum FeatureRef {
Feature(FeatureName),
Dep(ProfileName),
Of {
profile: ProfileName,
feature: FeatureName,
weak: bool,
},
}Expand description
What a feature turns on.
Variants§
Feature(FeatureName)
Another feature of the profile: katex.
Dep(ProfileName)
An optional requirement, activated: dep:lychee.
Of
A feature of a requirement: github-ci/pages, which activates it too; or, when weak,
mdbook?/agents, only if it is active by other means.
Trait Implementations§
Source§impl Clone for FeatureRef
impl Clone for FeatureRef
Source§impl Debug for FeatureRef
impl Debug for FeatureRef
Source§impl<'de> Deserialize<'de> for FeatureRef
impl<'de> Deserialize<'de> for FeatureRef
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FeatureRef
impl Display for FeatureRef
impl Eq for FeatureRef
Source§impl FromStr for FeatureRef
impl FromStr for FeatureRef
Source§impl Ord for FeatureRef
impl Ord for FeatureRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FeatureRef
impl PartialEq for FeatureRef
Source§impl PartialOrd for FeatureRef
impl PartialOrd for FeatureRef
impl StructuralPartialEq for FeatureRef
Auto Trait Implementations§
impl Freeze for FeatureRef
impl RefUnwindSafe for FeatureRef
impl Send for FeatureRef
impl Sync for FeatureRef
impl Unpin for FeatureRef
impl UnsafeUnpin for FeatureRef
impl UnwindSafe for FeatureRef
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.