bevy/crates/bevy_ecs/src
harudagondi 959f3b1186 Allows conversion of mutable queries to immutable queries (#5376)
# Objective

- Allows conversion of mutable queries to immutable queries.
- Fixes #4606

## Solution

- Add `to_readonly` method on `Query`, which uses `QueryState::as_readonly`
- `AsRef` is not feasible because creation of new queries is needed.

---

## Changelog

### Added

- Allows conversion of mutable queries to immutable queries using `Query::to_readonly`.
2022-07-20 01:09:45 +00:00
..
entity Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
query remove QF generics from all Query/State methods and types (#5170) 2022-07-19 00:45:00 +00:00
schedule Simplify design for *Labels (#4957) 2022-07-14 18:23:01 +00:00
storage Update codebase to use IntoIterator where possible. (#5269) 2022-07-11 15:28:50 +00:00
system Allows conversion of mutable queries to immutable queries (#5376) 2022-07-20 01:09:45 +00:00
world rename send_default_event to send_event_default on world (#5383) 2022-07-19 22:28:05 +00:00
archetype.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +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 Add reflection for resources (#5175) 2022-07-04 13:04:20 +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 Document exotic patterns for Commands and Events (#4840) 2022-07-13 14:40:52 +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