Enum guppy::platform::EnabledTernary [−][src]
pub enum EnabledTernary {
Disabled,
Unknown,
Enabled,
}
Expand description
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
Trait Implementations
AND operation in Kleene K3 logic.
OR operation in Kleene K3 logic.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for EnabledTernary
impl Send for EnabledTernary
impl Sync for EnabledTernary
impl Unpin for EnabledTernary
impl UnwindSafe for EnabledTernary
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.