SpawnChildScope

Trait SpawnChildScope 

Source
pub trait SpawnChildScope {
    // Required method
    fn spawn_child_scope(&mut self, f: impl FnOnce()) -> &mut Self;
}
Expand description

Create a function scope that can use spawn! to create children.

Required Methods§

Source

fn spawn_child_scope(&mut self, f: impl FnOnce()) -> &mut Self

Create a function scope that can use spawn! to create children.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SpawnChildScope for EntityCommands<'_>

Source§

fn spawn_child_scope(&mut self, f: impl FnOnce()) -> &mut Self

Source§

impl SpawnChildScope for EntityWorldMut<'_>

Source§

fn spawn_child_scope(&mut self, f: impl FnOnce()) -> &mut Self

Implementors§