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
sourceimpl EnabledTernary
impl EnabledTernary
Trait Implementations
sourceimpl BitAnd<EnabledTernary> for EnabledTernary
impl BitAnd<EnabledTernary> for EnabledTernary
AND operation in Kleene K3 logic.
sourceimpl BitOr<EnabledTernary> for EnabledTernary
impl BitOr<EnabledTernary> for EnabledTernary
OR operation in Kleene K3 logic.
type Output = EnabledTernary
type Output = EnabledTernary
The resulting type after applying the |
operator.
sourceimpl Clone for EnabledTernary
impl Clone for EnabledTernary
sourcefn clone(&self) -> EnabledTernary
fn clone(&self) -> EnabledTernary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnabledTernary
impl Debug for EnabledTernary
sourceimpl Hash for EnabledTernary
impl Hash for EnabledTernary
sourceimpl Ord for EnabledTernary
impl Ord for EnabledTernary
sourceimpl PartialEq<EnabledTernary> for EnabledTernary
impl PartialEq<EnabledTernary> for EnabledTernary
sourceimpl PartialOrd<EnabledTernary> for EnabledTernary
impl PartialOrd<EnabledTernary> for EnabledTernary
sourcefn partial_cmp(&self, other: &EnabledTernary) -> Option<Ordering>
fn partial_cmp(&self, other: &EnabledTernary) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for EnabledTernary
impl Eq for EnabledTernary
impl StructuralEq for EnabledTernary
impl StructuralPartialEq for EnabledTernary
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more