Enum guppy::platform::EnabledTernary
source · 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§
source§impl BitAnd for EnabledTernary
impl BitAnd for EnabledTernary
AND operation in Kleene K3 logic.
source§impl BitOr for EnabledTernary
impl BitOr for EnabledTernary
OR operation in Kleene K3 logic.
source§impl Clone for EnabledTernary
impl Clone for EnabledTernary
source§fn clone(&self) -> EnabledTernary
fn clone(&self) -> EnabledTernary
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EnabledTernary
impl Debug for EnabledTernary
source§impl Hash for EnabledTernary
impl Hash for EnabledTernary
source§impl Ord for EnabledTernary
impl Ord for EnabledTernary
source§fn cmp(&self, other: &EnabledTernary) -> Ordering
fn cmp(&self, other: &EnabledTernary) -> Ordering
1.21.0 · 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
source§impl PartialEq for EnabledTernary
impl PartialEq for EnabledTernary
source§impl PartialOrd for EnabledTernary
impl PartialOrd for EnabledTernary
impl Copy for EnabledTernary
impl Eq for EnabledTernary
impl StructuralPartialEq for EnabledTernary
Auto Trait Implementations§
impl Freeze for EnabledTernary
impl RefUnwindSafe for EnabledTernary
impl Send for EnabledTernary
impl Sync for EnabledTernary
impl Unpin for EnabledTernary
impl UnwindSafe for EnabledTernary
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more