-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
contiguous_iter should be a compile error if not using table storage strategy #24374
Copy link
Copy link
Open
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Milestone
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Needs SME Triage
What problem does this solve or what need does it fill?
Using the wrong storage and attempting to use these methods results in a runtime error, which is suboptimal.
What solution would you like?
We can improve the API by making these iteration methods not return a result and instead gate the trait implementation on the GAT.
What alternative(s) have you considered?
N/A
Additional context
This is a new feature in 0.19, so if this is fixed in the RC, that would be cool.