SpawnableExt

Trait SpawnableExt 

Source
pub trait SpawnableExt {
    // Required method
    fn spawns(&mut self, spawnable: &mut impl Spawnable) -> EntityCommands<'_>;
}

Required Methods§

Source

fn spawns(&mut self, spawnable: &mut impl Spawnable) -> 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.

Implementations on Foreign Types§

Source§

impl SpawnableExt for Commands<'_, '_>

Source§

fn spawns(&mut self, spawnable: &mut impl Spawnable) -> EntityCommands<'_>

Source§

impl<R: Relationship> SpawnableExt for RelatedSpawnerCommands<'_, R>

Source§

fn spawns(&mut self, spawnable: &mut impl Spawnable) -> EntityCommands<'_>

Implementors§