bevy
bevy copied to clipboard
Add a public constructor for `Mut<T>`
Objective
Fix #6497.
Since it is not possible to construct an instance of Mut<T> outside of bevy_ecs, other crates that need similar behavior (such as bevy-trait-query) need to create their own duplicate implementations of this type.
Solution
Add a public constructor for Mut<T>.
Changelog
- Added the associated function
newtoMut<T>.