bevy/crates/bevy_ecs/src/query
vil'mo b30ee2d051
Disallow requesting write resource access in Queries (#17116)
Related to https://github.com/bevyengine/bevy/pull/16843

Since `WorldQuery::Fetch` is `Clone`, it can't store mutable references
to resources, so it doesn't make sense to mutably access resources. In
that sense, it is hard to find usecases of mutably accessing resources
and to clearly define, what mutably accessing resources would mean, so
it's been decided to disallow write resource access.
Also changed documentation of safety requirements of
`WorldQuery::init_fetch` and `WorldQuery::fetch` to clearly state to the
caller, what safety invariants they need to uphold.
2025-01-06 19:04:26 +00:00
..
access.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
builder.rs Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
error.rs Optimize Entities::entity_does_not_exist_error_details_message, remove UnsafeWorldCell from error (#17115) 2025-01-05 02:01:01 +00:00
fetch.rs Rename track_change_detection flag to track_location (#17075) 2025-01-01 18:43:47 +00:00
filter.rs Prefer Display over Debug (#16112) 2024-12-27 00:40:06 +00:00
iter.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
mod.rs Disallow requesting write resource access in Queries (#17116) 2025-01-06 19:04:26 +00:00
par_iter.rs Fix query transmute from table to archetype iteration unsoundness (#14615) 2024-08-27 00:58:40 +00:00
state.rs Disallow requesting write resource access in Queries (#17116) 2025-01-06 19:04:26 +00:00
world_query.rs Disallow requesting write resource access in Queries (#17116) 2025-01-06 19:04:26 +00:00