Trait SpawnBsml

Source
pub trait SpawnBsml {
    // Required methods
    fn spawn_bsml<'a, T: BsmlElement>(
        &'a mut self,
        node: T,
    ) -> EntityCommands<'a>;
    fn despawn_bsml(&mut self, entity: Entity);
}

Required Methods§

Source

fn spawn_bsml<'a, T: BsmlElement>(&'a mut self, node: T) -> EntityCommands<'a>

Source

fn despawn_bsml(&mut self, entity: Entity)

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<'w, 's> SpawnBsml for Commands<'w, 's>

Source§

fn spawn_bsml<'a, T: BsmlElement>(&'a mut self, node: T) -> EntityCommands<'a>

Source§

fn despawn_bsml(&mut self, entity: Entity)

Implementors§