Enum guppy::platform::PlatformStatus [−][src]
pub enum PlatformStatus<'g> {
Never,
Always,
PlatformDependent {
eval: PlatformEval<'g>,
},
}
Expand description
The status of a dependency or feature, which is possibly platform-dependent.
This is a sub-status of EnabledStatus
.
Variants
This dependency or feature is never enabled on any platforms.
This dependency or feature is always enabled on all platforms.
The status is platform-dependent.
Fields of PlatformDependent
eval: PlatformEval<'g>
An evaluator to run queries against.
Implementations
Returns true if this dependency is always enabled on all platforms.
Returns true if this dependency is never enabled on any platform.
Returns true if this dependency is possibly enabled on any platform.
Evaluates whether this dependency is enabled on the given platform spec.
Returns Unknown
if the result was unknown, which may happen if evaluating against an
individual platform and its target features are unknown.
Trait Implementations
Auto Trait Implementations
impl<'g> RefUnwindSafe for PlatformStatus<'g>
impl<'g> Send for PlatformStatus<'g>
impl<'g> Sync for PlatformStatus<'g>
impl<'g> Unpin for PlatformStatus<'g>
impl<'g> UnwindSafe for PlatformStatus<'g>
Blanket Implementations
Mutably borrows from an owned value. Read more