#[non_exhaustive]pub struct GraphReportSnapshot {
pub title: String,
pub nodes: Vec<GraphReportNode>,
pub edges: Vec<GraphReportEdge>,
pub summary: GraphReportSummary,
}Expand description
Immutable-by-default graph after filtering, collapsing, aggregation, and counting.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: StringHuman-readable report title.
nodes: Vec<GraphReportNode>Deterministically sorted final nodes.
edges: Vec<GraphReportEdge>Deterministically sorted final edges.
summary: GraphReportSummaryCounts for the selected raw and final graph.
Implementations§
Source§impl GraphReportSnapshot
impl GraphReportSnapshot
Sourcepub fn new(
title: impl Into<String>,
nodes: impl IntoIterator<Item = GraphReportNode>,
edges: impl IntoIterator<Item = GraphReportEdge>,
summary: GraphReportSummary,
) -> Self
pub fn new( title: impl Into<String>, nodes: impl IntoIterator<Item = GraphReportNode>, edges: impl IntoIterator<Item = GraphReportEdge>, summary: GraphReportSummary, ) -> Self
Creates one complete renderer-neutral snapshot.
Trait Implementations§
Source§impl Clone for GraphReportSnapshot
impl Clone for GraphReportSnapshot
Source§fn clone(&self) -> GraphReportSnapshot
fn clone(&self) -> GraphReportSnapshot
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphReportSnapshot
impl Debug for GraphReportSnapshot
Source§impl PartialEq for GraphReportSnapshot
impl PartialEq for GraphReportSnapshot
impl Eq for GraphReportSnapshot
impl StructuralPartialEq for GraphReportSnapshot
Auto Trait Implementations§
impl Freeze for GraphReportSnapshot
impl RefUnwindSafe for GraphReportSnapshot
impl Send for GraphReportSnapshot
impl Sync for GraphReportSnapshot
impl Unpin for GraphReportSnapshot
impl UnwindSafe for GraphReportSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.