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

Never

This dependency or feature is never enabled on any platforms.

Always

This dependency or feature is always enabled on all platforms.

PlatformDependent

Fields

eval: PlatformEval<'g>

An evaluator to run queries against.

The status is platform-dependent.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.