bevy/crates/bevy_ecs/src/system
Zachary Harrold 4c6b6fc24a
Moved get_component(_unchecked_mut) from Query to QueryState (#9686)
# Objective

- Fixes #9683

## Solution

- Moved `get_component` from `Query` to `QueryState`.
- Moved `get_component_unchecked_mut` from `Query` to `QueryState`.
- Moved `QueryComponentError` from `bevy_ecs::system` to
`bevy_ecs::query`. Minor Breaking Change.
- Narrowed scope of `unsafe` blocks in `Query` methods.

---

## Migration Guide

- `use bevy_ecs::system::QueryComponentError;` -> `use
bevy_ecs::query::QueryComponentError;`

## Notes

I am not very familiar with unsafe Rust nor its use within Bevy, so I
may have committed a Rust faux pas during the migration.

---------

Co-authored-by: Zac Harrold <zharrold@c5prosolutions.com>
Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com>
2023-09-11 19:04:22 +00:00
..
commands Allow disjoint mutable world access via EntityMut (#9419) 2023-08-28 23:30:59 +00:00
adapter_system.rs Add system.map(...) for transforming the output of a system (#8526) 2023-08-28 16:36:46 +00:00
combinator.rs Move schedule name into Schedule (#9600) 2023-08-28 20:44:48 +00:00
exclusive_function_system.rs Document every public item in bevy_ecs (#8731) 2023-06-10 23:23:48 +00:00
exclusive_system_param.rs Document every public item in bevy_ecs (#8731) 2023-06-10 23:23:48 +00:00
function_system.rs Migrate the rest of the engine to UnsafeWorldCell (#8833) 2023-06-15 01:31:56 +00:00
mod.rs Moved get_component(_unchecked_mut) from Query to QueryState (#9686) 2023-09-11 19:04:22 +00:00
query.rs Moved get_component(_unchecked_mut) from Query to QueryState (#9686) 2023-09-11 19:04:22 +00:00
system_param.rs Move schedule name into Schedule (#9600) 2023-08-28 20:44:48 +00:00
system.rs Improve various Debug implementations (#9588) 2023-08-26 21:27:41 +00:00