Rename reads_and_writes field of Access to reads
#4306
Closed
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.
Objective
&mut Worldas a system param and make.exclusive_system()optional #4166 (comment)reads | writes == reads, notreads & writesSolution
Additional Context
In an ideal world, this would look something like
Unfortunately, this is perf-critical code, so we're using a bitset to allow for quick comparisons.
If and when we want to extend
Accessto support more exotic access types (likepresencefor the existence of a component type orforgefor the ability to add components of that type), the name makes even less sense.