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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.