Struct guppy::platform::PlatformSummary
source · [−]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
sourceimpl PlatformSummary
impl PlatformSummary
sourcepub fn new(platform: &Platform) -> PlatformSummary
Available on crate feature summaries
only.
pub fn new(platform: &Platform) -> PlatformSummary
summaries
only.Creates a new PlatformSummary
instance from a platform.
sourcepub fn to_platform(&self) -> Result<Platform, Error>
Available on crate feature summaries
only.
pub fn to_platform(&self) -> Result<Platform, Error>
summaries
only.Converts self
to a Platform
.
Returns an Error
if the platform was unknown.
Trait Implementations
sourceimpl Clone for PlatformSummary
impl Clone for PlatformSummary
sourcefn clone(&self) -> PlatformSummary
fn clone(&self) -> PlatformSummary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PlatformSummary
impl Debug for PlatformSummary
sourceimpl<'de> Deserialize<'de> for PlatformSummary
impl<'de> Deserialize<'de> for PlatformSummary
sourcefn deserialize<D>(
deserializer: D
) -> Result<PlatformSummary, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
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
sourceimpl PartialEq<PlatformSummary> for PlatformSummary
impl PartialEq<PlatformSummary> for PlatformSummary
sourcefn eq(&self, other: &PlatformSummary) -> bool
fn eq(&self, other: &PlatformSummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PlatformSummary) -> bool
fn ne(&self, other: &PlatformSummary) -> bool
This method tests for !=
.
sourceimpl Serialize for PlatformSummary
impl Serialize for PlatformSummary
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
impl Eq for PlatformSummary
impl StructuralEq for PlatformSummary
impl StructuralPartialEq for PlatformSummary
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more