bevy/crates/bevy_ecs/src
Boxy eabcd27d93 make WorldQuery very flat (#5205)
# Objective

Simplify the worldquery trait hierarchy as much as possible by putting it all in one trait. If/when gats are stabilised this can be trivially migrated over to use them, although that's not why I made this PR, those reasons are:
- Moves all of the conceptually related unsafe code for a worldquery next to eachother
- Removes now unnecessary traits simplifying the "type system magic" in bevy_ecs

---

## Changelog

All methods/functions/types/consts on `FetchState` and `Fetch` traits have been moved to the `WorldQuery` trait and the other traits removed. `WorldQueryGats` now only contains an `Item` and `Fetch` assoc type.

## Migration Guide
Implementors should move items in impls to the `WorldQuery/Gats` traits and remove any `Fetch`/`FetchState` impls
Any use sites of items in the `Fetch`/`FetchState` traits should be updated to use the `WorldQuery` trait items instead


Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2022-08-04 21:51:02 +00:00
..
entity Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
query make WorldQuery very flat (#5205) 2022-08-04 21:51:02 +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 Add FromWorld bound to T in Local<T> (#5481) 2022-08-01 16:50:11 +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