-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[Merged by Bors] - Add get_multiple and get_multiple_mut APIs for Query and QueryState #4298
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
Closed
alice-i-cecile
wants to merge
32
commits into
bevyengine:main
from
alice-i-cecile:get_multiple-again
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
a78a231
Basic function signatures
alice-i-cecile 2a22d98
Add AliasedMutability variant to QueryEntityError
alice-i-cecile f822094
QueryState methods
alice-i-cecile f47b7ea
Query methods
alice-i-cecile 854bb1e
Infallible variants
alice-i-cecile 712abda
Fix safety comment
alice-i-cecile 34e92c7
Make QueryEntityError more useful
alice-i-cecile 063e616
Basic docs
alice-i-cecile 2423515
Basic doc tests
alice-i-cecile f04c390
Doc tests for unhappy paths
alice-i-cecile 3bc9432
Fix lifetimes on self
alice-i-cecile fce42c7
Use unwrap_err to fix broken doc test
alice-i-cecile 1932ee7
Deduplicate logic
alice-i-cecile 1544dbb
Split logic into mutable and non-mutable variants to reduce unsafety
alice-i-cecile 0f0d8ae
Use read-write Fetch type for get_multiple_unchecked_manual
alice-i-cecile f5bb379
Add compile-fail tests to verify lifetimes
alice-i-cecile 913178b
Fail to compile correctly
alice-i-cecile b2e3786
Blessed be the compiler error message
alice-i-cecile 7d1b592
Leave TODO
alice-i-cecile a266f5a
Compile fail test for get_multiple
alice-i-cecile f41213d
Dedicated aliased mutability test
alice-i-cecile 606c36e
Verify that we're working on the right World
alice-i-cecile 2edcb87
Remove from_raw from doc tests
alice-i-cecile d2ad4fb
More robust error handling
alice-i-cecile 5871b10
Explicitly test for invalid entities
alice-i-cecile 1cd2963
Also return the Entity for `QueryEntityError::QueryDoesNotMatch`
alice-i-cecile 22337a8
Fix tests
alice-i-cecile 86f1521
Move world validation into `QueryState::get_mulitple_mut`
alice-i-cecile be22235
World is already validated by update_archetypes call
alice-i-cecile f7aa741
Avoid repeated calls to validate_world in Query::get_multiple
alice-i-cecile 141c01d
Yeet validation
alice-i-cecile c0e5903
Cargo fmt
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.