Skip to content

Investigate ergonomic improvements for state scoped events API #19452

Open
@alice-i-cecile

Description

@alice-i-cecile

I have reverted back to clear_events_on_exit_state, but unlike with 4 it requires specifying the event type each time.

Quick question: if you use an impl Trait argument, rather than a generic, can we get type inference working properly for these methods?

Originally posted by @alice-i-cecile in #19435 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-StatesApp-level states machinesC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-Domain-AgnosticCan be tackled by anyone with generic programming or Rust skillsD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions