![]() # Objective Partially addresses #5504. Allow users to get an `Iterator<Item = EntityRef<'a>>` over all entities in the `World`. ## Solution Change `World::iter_entities` to return an iterator of `EntityRef` instead of `Entity`. Not sure how to tackle making an `Iterator<Item = EntityMut<'_>>` without being horribly unsound. Might need to wait for `LendingIterator` to stabilize so we can ensure only one of them is valid at a given time. --- ## Changelog Changed: `World::iter_entities` now returns an iterator of `EntityRef` instead of `Entity`. |
||
---|---|---|
.. | ||
bundle.rs | ||
dynamic_scene_builder.rs | ||
dynamic_scene.rs | ||
lib.rs | ||
scene_loader.rs | ||
scene_spawner.rs | ||
scene.rs | ||
serde.rs |