pub struct PaneVersioningReport {
pub version_count: usize,
pub cursor: usize,
pub distinct_nodes: usize,
pub total_logical_nodes: usize,
pub shared_nodes: usize,
pub sharing_ratio: f64,
pub current_node_count: usize,
pub current_depth: usize,
pub pruned_versions: usize,
}Expand description
Structural-sharing and memory-retention diagnostics for a PaneVersionStore.
Fields§
§version_count: usizeNumber of retained versions.
cursor: usizeCurrent cursor index.
distinct_nodes: usizePhysically distinct Arc node allocations across all retained versions.
total_logical_nodes: usizeSum of per-version node counts (what naive snapshot-per-version stores).
total_logical_nodes - distinct_nodes: nodes reused via sharing.
sharing_ratio: f64shared_nodes / total_logical_nodes in [0, 1].
current_node_count: usizeNode count of the current version.
current_depth: usizeDepth of the current version.
pruned_versions: usizeVersions pruned by the retention bound.
Trait Implementations§
Source§impl Clone for PaneVersioningReport
impl Clone for PaneVersioningReport
Source§fn clone(&self) -> PaneVersioningReport
fn clone(&self) -> PaneVersioningReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaneVersioningReport
impl Debug for PaneVersioningReport
Source§impl PartialEq for PaneVersioningReport
impl PartialEq for PaneVersioningReport
Source§fn eq(&self, other: &PaneVersioningReport) -> bool
fn eq(&self, other: &PaneVersioningReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaneVersioningReport
impl Serialize for PaneVersioningReport
impl StructuralPartialEq for PaneVersioningReport
Auto Trait Implementations§
impl Freeze for PaneVersioningReport
impl RefUnwindSafe for PaneVersioningReport
impl Send for PaneVersioningReport
impl Sync for PaneVersioningReport
impl Unpin for PaneVersioningReport
impl UnsafeUnpin for PaneVersioningReport
impl UnwindSafe for PaneVersioningReport
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