Struct guppy::graph::summaries::PlatformSummary[][src]

pub struct PlatformSummary {
    pub triple: String,
    pub target_features: TargetFeaturesSummary,
    pub flags: BTreeSet<String>,
}

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

impl PlatformSummary[src]

pub fn new(platform: &Platform<'_>) -> Result<PlatformSummary, Error>[src]

Creates a new PlatformSummary instance from a platform.

Returns an error if this is a custom platform. Serializing custom platforms is currently unsupported.

pub fn to_platform(&self) -> Result<Platform<'static>, Error>[src]

Converts self to a Platform.

Returns an Error if the platform was unknown.

Trait Implementations

impl Clone for PlatformSummary[src]

impl Debug for PlatformSummary[src]

impl<'de> Deserialize<'de> for PlatformSummary[src]

impl Eq for PlatformSummary[src]

impl PartialEq<PlatformSummary> for PlatformSummary[src]

impl Serialize for PlatformSummary[src]

impl StructuralEq for PlatformSummary[src]

impl StructuralPartialEq for PlatformSummary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,