Struct guppy::graph::summaries::SummaryWithMetadata [−][src]
An in-memory representation of a build summary.
The metadata parameter is customizable.
For more, see the crate-level documentation.
Fields
metadata: Option<M>
Extra metadata associated with the summary.
This may be used for storing extra information about the summary.
The type defaults to toml::Value
but is customizable.
target_packages: BTreeMap<SummaryId, PackageInfo>
The packages and features built on the target platform.
host_packages: BTreeMap<SummaryId, PackageInfo>
The packages and features built on the host platform.
Implementations
impl<M> SummaryWithMetadata<M>
[src]
pub fn parse<'de>(s: &'de str) -> Result<SummaryWithMetadata<M>, Error> where
M: Deserialize<'de>,
[src]
M: Deserialize<'de>,
Deserializes a summary from the given string, with optional custom metadata.
pub fn diff<M2>(&'a self, other: &'a SummaryWithMetadata<M2>) -> SummaryDiff<'a>
[src]
Perform a diff of this summary against another.
This doesn't diff the metadata, just the initials and packages.
pub fn to_string(&self) -> Result<String, Error> where
M: Serialize,
[src]
M: Serialize,
Serializes this summary to a TOML string.
pub fn write_to_string(&self, dst: &mut String) -> Result<(), Error> where
M: Serialize,
[src]
M: Serialize,
Serializes this summary into the given TOML string, using pretty TOML syntax.
Trait Implementations
impl<M> Clone for SummaryWithMetadata<M> where
M: Clone,
[src]
M: Clone,
pub fn clone(&self) -> SummaryWithMetadata<M>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M> Debug for SummaryWithMetadata<M> where
M: Debug,
[src]
M: Debug,
impl<M> Default for SummaryWithMetadata<M>
[src]
pub fn default() -> SummaryWithMetadata<M>
[src]
impl<'de, M> Deserialize<'de> for SummaryWithMetadata<M> where
M: Deserialize<'de>,
[src]
M: Deserialize<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SummaryWithMetadata<M>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<SummaryWithMetadata<M>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<M> Eq for SummaryWithMetadata<M> where
M: Eq,
[src]
M: Eq,
impl<M> Hash for SummaryWithMetadata<M> where
M: Hash,
[src]
M: Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<M> PartialEq<SummaryWithMetadata<M>> for SummaryWithMetadata<M> where
M: PartialEq<M>,
[src]
M: PartialEq<M>,
pub fn eq(&self, other: &SummaryWithMetadata<M>) -> bool
[src]
pub fn ne(&self, other: &SummaryWithMetadata<M>) -> bool
[src]
impl<M> Serialize for SummaryWithMetadata<M> where
M: Serialize,
[src]
M: Serialize,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<M> StructuralEq for SummaryWithMetadata<M>
[src]
impl<M> StructuralPartialEq for SummaryWithMetadata<M>
[src]
Auto Trait Implementations
impl<M> RefUnwindSafe for SummaryWithMetadata<M> where
M: RefUnwindSafe,
[src]
M: RefUnwindSafe,
impl<M> Send for SummaryWithMetadata<M> where
M: Send,
[src]
M: Send,
impl<M> Sync for SummaryWithMetadata<M> where
M: Sync,
[src]
M: Sync,
impl<M> Unpin for SummaryWithMetadata<M> where
M: Unpin,
[src]
M: Unpin,
impl<M> UnwindSafe for SummaryWithMetadata<M> where
M: UnwindSafe,
[src]
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
[src]
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
[src]
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
[src]
pub fn self_address_mut(&mut self) -> *mut ()
[src]
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SafeBorrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,