pub struct TestComposition { /* private fields */ }Expand description
In-memory composition helper used by tests.
Implementations§
Source§impl TestComposition
impl TestComposition
pub fn root(&self) -> Option<NodeId>
pub fn runtime_handle(&self) -> RuntimeHandle
pub fn should_render(&self) -> bool
pub fn take_root_render_request(&mut self) -> bool
pub fn flush_pending_node_updates(&mut self) -> Result<(), NodeError>
pub fn process_invalid_scopes(&mut self) -> Result<bool, NodeError>
pub fn render( &mut self, root_key: Key, content: impl FnMut(), ) -> Result<(), NodeError>
pub fn applier_mut(&mut self) -> TestApplierGuard<'_>
pub fn with_app_context<R>(&self, block: impl FnOnce() -> R) -> R
Auto Trait Implementations§
impl Freeze for TestComposition
impl !RefUnwindSafe for TestComposition
impl !Send for TestComposition
impl !Sync for TestComposition
impl Unpin for TestComposition
impl UnsafeUnpin for TestComposition
impl !UnwindSafe for TestComposition
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