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