pub struct SlotDebugSnapshot {
pub active_groups: Vec<SlotDebugGroup>,
pub anchors: Vec<SlotDebugAnchor>,
pub scopes: Vec<SlotDebugScope>,
pub active_payload_count: usize,
pub active_node_count: usize,
pub active_scope_count: usize,
pub retained_subtree_count: usize,
pub retained_group_count: usize,
pub retained_payload_count: usize,
pub retained_node_count: usize,
pub retained_scope_count: usize,
}Expand description
A copy of the groups, anchors and scopes of a slot table, for tests and diagnostics.
Fields§
§active_groups: Vec<SlotDebugGroup>Every group in the table, in table order.
anchors: Vec<SlotDebugAnchor>Every live group anchor with the index of the group it points at, sorted by that index.
scopes: Vec<SlotDebugScope>Every recompose scope with its group, sorted by scope id.
active_payload_count: usizePayload slots in the table.
active_node_count: usizeNodes in the table.
active_scope_count: usizeGroups that own a recompose scope.
retained_subtree_count: usizeSubtrees retained for hidden content.
retained_group_count: usizeGroups inside retained subtrees.
retained_payload_count: usizePayload slots inside retained subtrees.
retained_node_count: usizeNodes inside retained subtrees.
retained_scope_count: usizeRecompose scopes inside retained subtrees.
Trait Implementations§
Source§impl Clone for SlotDebugSnapshot
impl Clone for SlotDebugSnapshot
Source§impl Debug for SlotDebugSnapshot
impl Debug for SlotDebugSnapshot
Source§impl Default for SlotDebugSnapshot
impl Default for SlotDebugSnapshot
impl Eq for SlotDebugSnapshot
Source§impl PartialEq for SlotDebugSnapshot
impl PartialEq for SlotDebugSnapshot
impl StructuralPartialEq for SlotDebugSnapshot
Auto Trait Implementations§
impl Freeze for SlotDebugSnapshot
impl RefUnwindSafe for SlotDebugSnapshot
impl Send for SlotDebugSnapshot
impl Sync for SlotDebugSnapshot
impl Unpin for SlotDebugSnapshot
impl UnsafeUnpin for SlotDebugSnapshot
impl UnwindSafe for SlotDebugSnapshot
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