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§
Sourcefn insert_kind<T: EntityKind>(
self,
bundle: T::Bundle,
) -> EntityKindCommands<'w, 's, 'a, T>
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.