InsertKind

Trait InsertKind 

Source
pub trait InsertKind<'w, 's, 'a> {
    // Required method
    fn insert_kind<T: EntityKind>(
        self,
        bundle: T::Bundle,
    ) -> EntityKindCommands<'w, 's, 'a, T>;
}
Expand description

Extension trait used to insert a new EntityKind into any Entity using some EntityCommands.

Required Methods§

Source

fn insert_kind<T: EntityKind>( self, bundle: T::Bundle, ) -> EntityKindCommands<'w, 's, 'a, T>

Inserts a new EntityKind into the associated Entity and returns an EntityKindCommands for it.

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, 'a> InsertKind<'w, 's, 'a> for EntityCommands<'w, 's, 'a>

Source§

fn insert_kind<T: EntityKind>( self, bundle: T::Bundle, ) -> EntityKindCommands<'w, 's, 'a, T>

Implementors§