Skip to content

ReflectKind struct #11657

@doonv

Description

@doonv

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

Allow an easy way of storing the kind of a reflected type.

What solution would you like?

Add a ReflectKind struct, which is like ReflectRef, ReflectMut, and ReflectOwned but only the kind of the type.

This kinda already exists in bevy_reflect, used in the context of Access related errors.

pub enum TypeKind {

However I think it should be moved to be used in a more general context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReflectionRuntime information about typesC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions