Struct guppy::platform::PlatformSummary [−][src]
pub struct PlatformSummary {
pub triple: String,
pub target_features: TargetFeaturesSummary,
pub flags: BTreeSet<String>,
}
Expand description
An owned, serializable version of Platform
.
This structure can be serialized and deserialized using serde
.
Requires the summaries
feature to be enabled.
Fields
triple: String
The platform triple.
target_features: TargetFeaturesSummary
The target features used.
flags: BTreeSet<String>
The flags enabled.
Implementations
Creates a new PlatformSummary
instance from a platform.
Converts self
to a Platform
.
Returns an Error
if the platform was unknown.
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<PlatformSummary, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<PlatformSummary, <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 PlatformSummary
impl Send for PlatformSummary
impl Sync for PlatformSummary
impl Unpin for PlatformSummary
impl UnwindSafe for PlatformSummary
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.