[−][src]Enum guppy::graph::EnabledStatus
Whether a dependency or feature is enabled on a specific platform.
Returned by the methods on DependencyMetadata
.
Examples
[dependencies]
once_cell = "1"
The dependency and default features are always enabled on all platforms.
[dependencies]
once_cell = { version = "1", optional = true }
The dependency and default features are optional on all platforms.
[target.'cfg(windows)'.dependencies]
once_cell = { version = "1", optional = true }
On Windows, the dependency and default features are both optional. On non-Windows platforms, the dependency and default features are never enabled.
[dependencies]
once_cell = { version = "1", optional = true }
[target.'cfg(windows)'.dependencies]
once_cell = { version = "1", optional = false, default-features = false }
On Windows, the dependency is always enabled and default features are optional (i.e. enabled
if the once_cell
feature is turned on).
On Unix platforms, the dependency and default features are both optional.
Variants
This dependency or feature is always enabled on this platform.
This dependency or feature is optionally enabled on this platform.
This dependency or feature is never enabled on this platform, even if the optional dependency is turned on.
Unknown(UnknownStatus)
The status of this dependency is unknown because the evaluation involved target features whose status is unknown.
This can only be returned if the set of target features is unknown. In particular, it is guaranteed never to be returned for queries being evaluated against the current platform, since the exact set of target features is already known.
Methods
impl EnabledStatus
[src]
Trait Implementations
impl Clone for EnabledStatus
[src]
fn clone(&self) -> EnabledStatus
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EnabledStatus
[src]
impl Debug for EnabledStatus
[src]
impl Eq for EnabledStatus
[src]
impl Hash for EnabledStatus
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for EnabledStatus
[src]
fn cmp(&self, other: &EnabledStatus) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EnabledStatus> for EnabledStatus
[src]
fn eq(&self, other: &EnabledStatus) -> bool
[src]
fn ne(&self, other: &EnabledStatus) -> bool
[src]
impl PartialOrd<EnabledStatus> for EnabledStatus
[src]
fn partial_cmp(&self, other: &EnabledStatus) -> Option<Ordering>
[src]
fn lt(&self, other: &EnabledStatus) -> bool
[src]
fn le(&self, other: &EnabledStatus) -> bool
[src]
fn gt(&self, other: &EnabledStatus) -> bool
[src]
fn ge(&self, other: &EnabledStatus) -> bool
[src]
impl StructuralEq for EnabledStatus
[src]
impl StructuralPartialEq for EnabledStatus
[src]
Auto Trait Implementations
impl RefUnwindSafe for EnabledStatus
impl Send for EnabledStatus
impl Sync for EnabledStatus
impl Unpin for EnabledStatus
impl UnwindSafe for EnabledStatus
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,