bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Add a public constructor for `Mut<T>`

Open joseph-gio opened this issue 2 years ago • 0 comments

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 new to Mut<T>.

joseph-gio avatar Mar 06 '23 16:03 joseph-gio