pub struct SlotTable { /* private fields */ }Expand description
Storage for the groups, remembered values and nodes that one composition produced.
Implementations§
Source§impl SlotTable
impl SlotTable
Sourcepub fn heap_bytes(&self) -> usize
pub fn heap_bytes(&self) -> usize
Heap bytes reserved by the table for groups, payloads, nodes and anchors.
Sourcepub fn debug_stats(&self) -> SlotTableLocalDebugStats
pub fn debug_stats(&self) -> SlotTableLocalDebugStats
Returns size and count figures for this table alone, without retained or pending-drop data.
Sourcepub fn debug_dump_groups(&self) -> Vec<(usize, Key, Option<usize>, usize)>
pub fn debug_dump_groups(&self) -> Vec<(usize, Key, Option<usize>, usize)>
Returns one (group index, call site key, scope id, subtree length) tuple per group.
Sourcepub fn debug_snapshot(&self) -> SlotDebugSnapshot
pub fn debug_snapshot(&self) -> SlotDebugSnapshot
Returns a copy of the groups, anchors and scopes of this table. The retained subtree counts are zero here; the composer fills them in.
Sourcepub fn debug_dump_slot_entries(&self) -> Vec<SlotDebugEntry>
pub fn debug_dump_slot_entries(&self) -> Vec<SlotDebugEntry>
Returns one row per group, payload and node in the table, in that order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SlotTable
impl !Send for SlotTable
impl !Sync for SlotTable
impl !UnwindSafe for SlotTable
impl Freeze for SlotTable
impl Unpin for SlotTable
impl UnsafeUnpin for SlotTable
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