-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ReflectKind struct #11657
Copy link
Copy link
Closed
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-FeatureA new feature, making something new possibleA new feature, making something new possible
Metadata
Metadata
Assignees
Labels
A-ReflectionRuntime information about typesRuntime information about typesC-FeatureA new feature, making something new possibleA new feature, making something new possible
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
ReflectKindstruct, which is likeReflectRef,ReflectMut, andReflectOwnedbut only the kind of the type.This kinda already exists in bevy_reflect, used in the context of
Accessrelated errors.bevy/crates/bevy_reflect/src/path/error.rs
Line 134 in 6f2eec8
However I think it should be moved to be used in a more general context.