bevy/crates/bevy_ecs/src
Christian Hughes f64f3ac997
Cleanup entity reference types (#17149)
# Objective

Cleanup `EntityRef`, `EntityMut`, and `EntityWorldMut` in preparation
for my "Scoped Entity References" PR.

## Solution

- Switched `EntityRef`/`EntityMut` from tuple structs to normal ones.
- Ensured all conversion trait impls use the same `entity` argument
name.
- Replaced some `unsafe` with delegated calls from `EntityMut` to
`EntityRef`
    - Added `EntityMut::into_readonly` to make the replacements clearer
- Replaced some `unsafe` with delegated calls from `EntityWorldMut` to
`EntityMut` and `EntityRef`
- Added `EntityWorldMut::into_readonly`, `::as_readonly`,
`::into_mutable`, `::as_mutable` to make the replacements clearer

## Testing

Reusing current tests.
2025-01-06 19:25:06 +00:00
..
entity Optimize Entities::entity_does_not_exist_error_details_message, remove UnsafeWorldCell from error (#17115) 2025-01-05 02:01:01 +00:00
event Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
identifier Use en-us locale for typos (#16037) 2024-10-20 18:55:17 +00:00
observer Update typos (#17126) 2025-01-03 17:44:26 +00:00
query Disallow requesting write resource access in Queries (#17116) 2025-01-06 19:04:26 +00:00
reflect Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
schedule Update typos (#17126) 2025-01-03 17:44:26 +00:00
storage Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
system Remove all deprecated code (#16338) 2025-01-05 20:33:39 +00:00
world Cleanup entity reference types (#17149) 2025-01-06 19:25:06 +00:00
archetype.rs Add no_std support to bevy_ecs (#16758) 2024-12-17 21:40:36 +00:00
batching.rs Fix *most* clippy lints (#15906) 2024-10-14 20:52:35 +00:00
bundle.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
change_detection.rs Rename track_change_detection flag to track_location (#17075) 2025-01-01 18:43:47 +00:00
component.rs Rename track_change_detection flag to track_location (#17075) 2025-01-01 18:43:47 +00:00
intern.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
label.rs
lib.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
name.rs Remove Implicit std Prelude from no_std Crates (#17086) 2025-01-03 01:58:43 +00:00
removal_detection.rs Replace map + unwrap_or(true) with is_none_or (#17070) 2024-12-31 20:17:03 +00:00
result.rs Add no_std support to bevy_ecs (#16758) 2024-12-17 21:40:36 +00:00
traversal.rs Window picking (#16103) 2024-12-05 21:14:39 +00:00