bevy/crates/bevy_ecs/src
Jerome Humbert d4787111a3 Conversion of ResMut and NonSendMut to Mut (#5438)
# Objective

Enable treating components and resources equally, which can
simplify the implementation of some systems where only the change
detection feature is relevant and not the kind of object (resource or
component).

## Solution

Implement `From<ResMut<T>>` and `From<NonSendMut<T>>` for
`Mut`. Since the 3 structs are similar, and only differ by their system
param role, the conversion is trivial.

---

## Changelog

Added - `From<ResMut>` and `From<NonSendMut>` for `Mut<T>`.
2022-07-25 16:11:29 +00:00
..
entity Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
query Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
schedule improve documentation for macro-generated label types (#5367) 2022-07-20 19:39:42 +00:00
storage Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
system Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
world Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
archetype.rs Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
bundle.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
change_detection.rs Conversion of ResMut and NonSendMut to Mut (#5438) 2022-07-25 16:11:29 +00:00
component.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
event.rs Fix various typos (#5417) 2022-07-21 20:46:54 +00:00
lib.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
reflect.rs Add apply_or_insert functions to reflected component and resources (#5201) 2022-07-11 14:11:24 +00:00