bevy/pipelined
Joshua Chapman 274ace790b Implement iter() for mutable Queries (#2305)
A sample implementation of how to have `iter()` work on mutable queries without breaking aliasing rules.

# Objective

- Fixes #753

## Solution

- Added a ReadOnlyFetch to WorldQuery that is the `&T` version of `&mut T` that is used to specify the return type for read only operations like `iter()`.
- ~~As the comment suggests specifying the bound doesn't work due to restrictions on defining recursive implementations (like `Or`). However bounds on the functions are fine~~ Never mind I misread how `Or` was constructed, bounds now exist.
- Note that the only mutable one has a new `Fetch` for readonly as the `State` has to be the same for any of this to work


Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-12-01 23:28:10 +00:00
..
bevy_core_pipeline Add support for opaque, alpha mask, and alpha blend modes (#3072) 2021-11-16 03:03:27 +00:00
bevy_gltf2 Faster gltf loader (re-merge of #3165) (#3189) 2021-11-25 16:35:50 +00:00
bevy_pbr2 fix calls to as_rgba_linear (#3200) 2021-11-28 10:40:42 +00:00
bevy_render2 Implement iter() for mutable Queries (#2305) 2021-12-01 23:28:10 +00:00
bevy_sprite2 Sprite change image (#3207) 2021-12-01 23:09:31 +00:00