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
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.