pub trait TryComponentsRef<'a> {
type Result;
// Required method
fn try_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 try_get_components(
entities_and_components: &'a EntitiesAndComponents,
entity: Entity,
) -> Self::Result
fn try_get_components( entities_and_components: &'a EntitiesAndComponents, entity: Entity, ) -> Self::Result
Returns a tuple of references to the 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.