pub trait OwnedComponents {
type Input;
// Required method
fn make_entity_with_components(
entities_and_components: &mut EntitiesAndComponents,
components: Self::Input,
) -> Entity;
}Expand description
This trait is used to get a tuple of owned components it is automatically implemented for tuples of components
Required Associated Types§
Required Methods§
Sourcefn make_entity_with_components(
entities_and_components: &mut EntitiesAndComponents,
components: Self::Input,
) -> Entity
fn make_entity_with_components( entities_and_components: &mut EntitiesAndComponents, components: Self::Input, ) -> Entity
Returns a tuple of owned components
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.