Trait ABC_ECS::ComponentsRef
source · pub trait ComponentsRef<'a> {
type Result;
// Required method
fn get_components(
entities_and_components: &'a EntitiesAndComponents,
entity: Entity
) -> Self::Result;
}Expand description
This trait is used to get a tuple of references to components it is automatically implemented for tuples of components
Required Associated Types§
Required Methods§
sourcefn get_components(
entities_and_components: &'a EntitiesAndComponents,
entity: Entity
) -> Self::Result
fn get_components( entities_and_components: &'a EntitiesAndComponents, entity: Entity ) -> Self::Result
Returns a tuple of references to the components
Object Safety§
This trait is not object safe.