Enum guppy::platform::TargetFeaturesSummary [−][src]
Expand description
An owned, serializable version of TargetFeatures
.
This type can be serialized and deserialized using serde
.
Requires the summaries
feature to be enabled.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The target features are unknown.
This is the default.
Only match the specified features.
Match all features.
Implementations
Creates a new TargetFeaturesSummary
from a TargetFeatures
.
Converts self
to a TargetFeatures
instance.
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<D>(
deserializer: D
) -> Result<TargetFeaturesSummary, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<TargetFeaturesSummary, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TargetFeaturesSummary
impl Send for TargetFeaturesSummary
impl Sync for TargetFeaturesSummary
impl Unpin for TargetFeaturesSummary
impl UnwindSafe for TargetFeaturesSummary
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.