Enum guppy::graph::EnabledTernary[][src]

pub enum EnabledTernary {
    Disabled,
    Unknown,
    Enabled,
}

Whether a dependency or feature is enabled on a specific platform.

This is a ternary or three-valued logic because the result may be unknown in some situations.

Returned by the methods on EnabledStatus, PlatformStatus, and PlatformEval.

Variants

Disabled

The dependency is disabled on this platform.

Unknown

The status of this dependency is unknown on this platform.

This may happen if evaluation involves unknown target features. Notably, this will not be returned for Platform::current(), since the target features for the current platform are known.

Enabled

The dependency is enabled on this platform.

Implementations

impl EnabledTernary[src]

pub fn is_known(self) -> bool[src]

Returns true if the status is known (either enabled or disabled).

Trait Implementations

impl Clone for EnabledTernary[src]

impl Copy for EnabledTernary[src]

impl Debug for EnabledTernary[src]

impl Eq for EnabledTernary[src]

impl Hash for EnabledTernary[src]

impl Ord for EnabledTernary[src]

impl PartialEq<EnabledTernary> for EnabledTernary[src]

impl PartialOrd<EnabledTernary> for EnabledTernary[src]

impl StructuralEq for EnabledTernary[src]

impl StructuralPartialEq for EnabledTernary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[src]

impl<T> SafeBorrow<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,