Skip to main content

TestApplierGuard

Struct TestApplierGuard 

Source
pub struct TestApplierGuard<'a> { /* private fields */ }

Methods from Deref<Target = MemoryApplier>§

Source

pub fn slots(&mut self) -> &mut SlotTable

Source

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.

Source

pub fn with_node<N, R>( &mut self, id: usize, f: impl FnOnce(&mut N) -> R, ) -> Result<R, NodeError>
where N: Node + 'static,

Source

pub fn len(&self) -> usize

Source

pub fn capacity(&self) -> usize

Source

pub fn tombstone_count(&self) -> usize

Source

pub fn freelist_len(&self) -> usize

Source

pub fn debug_recycled_node_count(&self) -> usize

Source

pub fn debug_recycled_node_count_for<N>(&self) -> usize
where N: Node + 'static,

Source

pub fn debug_stats(&self) -> MemoryApplierDebugStats

Source

pub fn is_empty(&self) -> bool

Source

pub fn debug_live_node_heap_bytes(&self) -> usize

Source

pub fn debug_recycled_node_heap_bytes(&self) -> usize

Source

pub fn set_runtime_handle(&mut self, handle: RuntimeHandle)

Source

pub fn clear_runtime_handle(&mut self)

Source

pub fn runtime_handle(&self) -> Option<RuntimeHandle>

Source

pub fn dump_tree(&self, root: Option<usize>) -> String

Trait Implementations§

Source§

impl Deref for TestApplierGuard<'_>

Source§

type Target = MemoryApplier

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for TestApplierGuard<'_>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.