Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add iter_many_manual QueryState method (#8772)
# Objective `QueryState` exposes a `get_manual` and `iter_manual` method. However, there is now `iter_many_manual`. `iter_many_manual` is useful when you have a `&World` (eg: the `world` in a `Scene`) and want to run a query several times on it (eg: iteratively navigate a hierarchy by calling `iter_many` on `Children` component). `iter_many`'s need for a `&mut World` makes the API much less flexible. The exclusive access pattern requires doing some very funky dance and excludes a category of algorithms for hierarchy traversal. ## Solution - Add a `iter_many_manual` method to `QueryState` ### Alternative My current workaround is to use `get_manual`. However, this doesn't benefit from the optimizations on `QueryManyIter`. --- ## Changelog - Add a `iter_many_manual` method to `QueryState`
- Loading branch information