pub struct ElementTreeDiagnosticsSnapshot {
pub totals: ElementWorkCounters,
pub elements: HashMap<ElementId, ElementWorkCounters>,
}Expand description
Snapshot for one retained element tree.
totals is computed by saturating-summing every value in elements at
snapshot time. The map contains only elements for which work has been
recorded and uses tree-local [ElementId] keys.
§Examples
use ailloli_ui_runtime::app::ElementTreeDiagnosticsSnapshot;
let snapshot = ElementTreeDiagnosticsSnapshot::default();
assert_eq!(snapshot.totals, Default::default());
assert!(snapshot.elements.is_empty());Fields§
§totals: ElementWorkCountersSaturating sum across all retained element counters.
elements: HashMap<ElementId, ElementWorkCounters>Per-element counters for entries with recorded work.
Trait Implementations§
Source§impl Clone for ElementTreeDiagnosticsSnapshot
impl Clone for ElementTreeDiagnosticsSnapshot
Source§fn clone(&self) -> ElementTreeDiagnosticsSnapshot
fn clone(&self) -> ElementTreeDiagnosticsSnapshot
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 Default for ElementTreeDiagnosticsSnapshot
impl Default for ElementTreeDiagnosticsSnapshot
Source§fn default() -> ElementTreeDiagnosticsSnapshot
fn default() -> ElementTreeDiagnosticsSnapshot
Returns the “default value” for a type. Read more
Source§impl PartialEq for ElementTreeDiagnosticsSnapshot
impl PartialEq for ElementTreeDiagnosticsSnapshot
Source§fn eq(&self, other: &ElementTreeDiagnosticsSnapshot) -> bool
fn eq(&self, other: &ElementTreeDiagnosticsSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ElementTreeDiagnosticsSnapshot
impl StructuralPartialEq for ElementTreeDiagnosticsSnapshot
Auto Trait Implementations§
impl Freeze for ElementTreeDiagnosticsSnapshot
impl RefUnwindSafe for ElementTreeDiagnosticsSnapshot
impl Send for ElementTreeDiagnosticsSnapshot
impl Sync for ElementTreeDiagnosticsSnapshot
impl Unpin for ElementTreeDiagnosticsSnapshot
impl UnwindSafe for ElementTreeDiagnosticsSnapshot
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
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.