Skip to content

PhantomData does not implement Reflect #5144

Description

@alice-i-cecile

What problem does this solve or what need does it fill?

PhantomData is a common and useful type, it should implement the Reflect trait.

Users cannot do this themselves because of orphan rules, and wrappers are very frustrating here.

What solution would you like?

Implement Reflect for PhantomData in bevy_reflect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReflectionRuntime information about typesC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyS-WontfixThis issue is the result of a deliberate design decision, and will not be fixed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions