bevy/crates/bevy_ecs/src
JoJoJet 59751d6e33 Add a method for converting MutUntyped -> Mut<T> (#7113)
# Objective

`MutUntyped` is a struct that stores a `PtrMut` alongside change tick metadata. Working with this type is cumbersome, and has few benefits over storing the pointer and change ticks separately.

Related: #6430 (title is out of date)

## Solution

Add a convenience method for transforming an untyped change detection pointer into its typed counterpart.

---

## Changelog

- Added the method `MutUntyped::with_type`.
2023-01-11 17:47:54 +00:00
..
entity Fix various typos (#7096) 2023-01-06 00:43:30 +00:00
query Added Ref to allow immutable access with change detection (#7097) 2023-01-11 15:41:54 +00:00
schedule Fix beta clippy lints (#7154) 2023-01-11 09:51:22 +00:00
storage Panic on dropping NonSend in non-origin thread. (#6534) 2023-01-09 20:40:34 +00:00
system Added Ref to allow immutable access with change detection (#7097) 2023-01-11 15:41:54 +00:00
world Added Ref to allow immutable access with change detection (#7097) 2023-01-11 15:41:54 +00:00
archetype.rs Fix various typos (#7096) 2023-01-06 00:43:30 +00:00
bundle.rs Fix beta clippy lints (#7154) 2023-01-11 09:51:22 +00:00
change_detection.rs Add a method for converting MutUntyped -> Mut<T> (#7113) 2023-01-11 17:47:54 +00:00
component.rs Document options for !Sync types for Component and Resources (#6864) 2022-12-11 18:34:13 +00:00
event.rs Rework manual event iterator so we can actually name the type (#5735) 2022-12-25 00:39:27 +00:00
lib.rs Added Ref to allow immutable access with change detection (#7097) 2023-01-11 15:41:54 +00:00
reflect.rs Enable Constructing ReflectComponent/Resource (#6257) 2022-10-17 14:01:50 +00:00