Skip to content

contiguous_iter should be a compile error if not using table storage strategy #24374

@BenjaminBrienen

Description

@BenjaminBrienen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Needs SME Triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions