bevy/crates/bevy_ecs/src/entity
James Liu 530be10e72 Newtype ArchetypeRow and TableRow (#4878)
# Objective
Prevent future unsoundness that was seen in #6623.

## Solution
Newtype both indexes in `Archetype` and `Table` as `ArchetypeRow` and `TableRow`. This avoids weird numerical manipulation on the indices, and can be stored and treated opaquely. Also enforces the source and destination of where these indices at a type level.

---

## Changelog
Changed: `Archetype` indices and `Table` rows have been newtyped as `ArchetypeRow` and `TableRow`.
2022-12-06 01:38:21 +00:00
..
map_entities.rs Lock down access to Entities (#6740) 2022-11-28 20:39:02 +00:00
mod.rs Newtype ArchetypeRow and TableRow (#4878) 2022-12-06 01:38:21 +00:00