pub struct TestApplierGuard<'a> { /* private fields */ }Methods from Deref<Target = MemoryApplier>§
pub fn slots(&mut self) -> &mut SlotTable
Sourcepub fn take_structural_change_parents_attached_to(
&mut self,
root: usize,
) -> Vec<usize>
pub fn take_structural_change_parents_attached_to( &mut self, root: usize, ) -> Vec<usize>
Drains the parents recorded via Applier::record_structural_change,
keeping only nodes still attached to root (a parent that was itself
removed is covered by its own surviving ancestor’s record). A virtual
parent — a subcompose slot wrapper the render graph never contains —
is reported as its nearest non-virtual ancestor: that is the node
whose graph child set the change altered, and an id the graph cannot
resolve would force the scoped scene update to give up and rebuild.
pub fn with_node<N, R>(
&mut self,
id: usize,
f: impl FnOnce(&mut N) -> R,
) -> Result<R, NodeError>where
N: Node + 'static,
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn tombstone_count(&self) -> usize
pub fn freelist_len(&self) -> usize
pub fn debug_recycled_node_count(&self) -> usize
pub fn debug_recycled_node_count_for<N>(&self) -> usizewhere
N: Node + 'static,
pub fn debug_stats(&self) -> MemoryApplierDebugStats
pub fn is_empty(&self) -> bool
pub fn debug_live_node_heap_bytes(&self) -> usize
pub fn debug_recycled_node_heap_bytes(&self) -> usize
pub fn set_runtime_handle(&mut self, handle: RuntimeHandle)
pub fn clear_runtime_handle(&mut self)
pub fn runtime_handle(&self) -> Option<RuntimeHandle>
pub fn dump_tree(&self, root: Option<usize>) -> String
Trait Implementations§
Source§impl Deref for TestApplierGuard<'_>
impl Deref for TestApplierGuard<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TestApplierGuard<'a>
impl<'a> !Send for TestApplierGuard<'a>
impl<'a> !Sync for TestApplierGuard<'a>
impl<'a> !UnwindSafe for TestApplierGuard<'a>
impl<'a> Freeze for TestApplierGuard<'a>
impl<'a> Unpin for TestApplierGuard<'a>
impl<'a> UnsafeUnpin for TestApplierGuard<'a>
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