pub trait SpawnWorld {
// Required methods
fn spawn_with(&mut self, _: impl Spawn) -> EntityWorldMut<'_>;
fn spawn_once_with(&mut self, _: impl SpawnOnce) -> EntityWorldMut<'_>;
fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityWorldMut<'_>;
fn spawn_key_with(
&mut self,
key: impl Into<SpawnKey>,
bundle: impl Bundle,
) -> EntityWorldMut<'_>;
}๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Required Methodsยง
fn spawn_with(&mut self, _: impl Spawn) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
fn spawn_once_with(&mut self, _: impl SpawnOnce) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
fn spawn_key_with( &mut self, key: impl Into<SpawnKey>, bundle: impl Bundle, ) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
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 SpawnWorld for World
impl SpawnWorld for World
Sourceยงfn spawn_with(&mut self, spawnable: impl Spawn) -> EntityWorldMut<'_>
fn spawn_with(&mut self, spawnable: impl Spawn) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Sourceยงfn spawn_once_with(&mut self, spawnable: impl SpawnOnce) -> EntityWorldMut<'_>
fn spawn_once_with(&mut self, spawnable: impl SpawnOnce) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Sourceยงfn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityWorldMut<'_>
fn spawn_key(&mut self, key: impl Into<SpawnKey>) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details
Sourceยงfn spawn_key_with(
&mut self,
key: impl Into<SpawnKey>,
bundle: impl Bundle,
) -> EntityWorldMut<'_>
fn spawn_key_with( &mut self, key: impl Into<SpawnKey>, bundle: impl Bundle, ) -> EntityWorldMut<'_>
๐Deprecated since 0.2.4: see documentation at https://github.com/Zeenobit/moonshine_spawn for details