pub trait SpawnCommands {
// Required methods
fn spawn_with(&mut self, _: impl Spawn) -> EntityCommands<'_>;
fn spawn_once_with(&mut self, _: impl SpawnOnce) -> EntityCommands<'_>;
fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityCommands<'_>;
fn spawn_key_with(
&mut self,
key: impl Into<SpawnKey>,
bundle: impl Bundle,
) -> EntityCommands<'_>;
}Required Methods§
fn spawn_with(&mut self, _: impl Spawn) -> EntityCommands<'_>
fn spawn_once_with(&mut self, _: impl SpawnOnce) -> EntityCommands<'_>
fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityCommands<'_>
fn spawn_key_with( &mut self, key: impl Into<SpawnKey>, bundle: impl Bundle, ) -> EntityCommands<'_>
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.