-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add more tools for traversing hierarchies #15627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alice-i-cecile
merged 20 commits into
bevyengine:main
from
alice-i-cecile:are-you-my-mother
Oct 7, 2024
Merged
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c06ae28
Crude initial implementation
alice-i-cecile c29a326
Optimize SiblingIter with SmallVec and less allocations
alice-i-cecile 1f7ed97
Remove query data from SiblingIter
alice-i-cecile 3d17174
Remove stored query in LeafIter
alice-i-cecile c8b1d9b
Add simple tests
alice-i-cecile 4ca9169
Appease CI
alice-i-cecile 12a8287
Increase readability of test cases
villor e690db1
Fix iter_siblings()
villor 5f9407f
Merge pull request #169 from villor/are-you-my-sister
alice-i-cecile 0345241
Clean up iter_siblings a bit by flattening the expression
villor c7f46e5
Clean up children() and return slice instead of iterator
villor bf332c6
Rename root_parent -> root_ancestor
villor aadcc99
Clean up iter_leaves and reduce allocations
villor d212eee
Add docs about traversal order for iter_leaves
villor d33e3c1
Add iter_descendants_depth_first
villor 9014f18
Change iter_leaves to use depth-first traversal
villor 504e6f8
Merge pull request #170 from villor/are-you-my-sister
alice-i-cecile 137f3ec
Merge pull request #171 from villor/are-you-my-grandkid
alice-i-cecile 32d83e4
Doc comment typo
alice-i-cecile 63d617f
Formatting
alice-i-cecile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.