bevy/crates/bevy_ecs/src/entity
Vic d229475a3f
wrap EntityIndexMap/Set slices as well (#18134)
# Objective

Continuation of #17449.

#17449 implemented the wrapper types around `IndexMap`/`Set` and co.,
however punted on the slice types.
They are needed to support creating `EntitySetIterator`s from their
slices, not just the base maps and sets.

## Solution

Add the wrappers, in the same vein as #17449 and #17589 before.

The `Index`/`IndexMut` implementations take up a lot of space, however
they cannot be merged because we'd then get overlaps.

They are simply named `Slice` to match the `indexmap` naming scheme, but
this means they cannot be differentiated properly until their modules
are made public, which is already a follow-up mentioned in #17954.
2025-03-17 18:42:18 +00:00
..
clone_entities.rs bevy_reflect: Deprecate PartialReflect::clone_value (#18284) 2025-03-14 19:33:57 +00:00
entity_set.rs make various entity wrapper type modules public (#18248) 2025-03-11 05:48:31 +00:00
hash_map.rs Implement Serialize/Deserialize for entity collections (#17620) 2025-02-02 15:42:36 +00:00
hash_set.rs Implement Serialize/Deserialize for entity collections (#17620) 2025-02-02 15:42:36 +00:00
hash.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
index_map.rs wrap EntityIndexMap/Set slices as well (#18134) 2025-03-17 18:42:18 +00:00
index_set.rs wrap EntityIndexMap/Set slices as well (#18134) 2025-03-17 18:42:18 +00:00
map_entities.rs Improved Entity Mapping and Cloning (#17687) 2025-02-06 22:13:41 +00:00
mod.rs bevy_reflect: Add clone registrations project-wide (#18307) 2025-03-17 18:32:35 +00:00
unique_array.rs add Entity default to the entity set wrappers (#18319) 2025-03-15 01:51:39 +00:00
unique_slice.rs add Entity default to the entity set wrappers (#18319) 2025-03-15 01:51:39 +00:00
unique_vec.rs add Entity default to the entity set wrappers (#18319) 2025-03-15 01:51:39 +00:00
visit_entities.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00