You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
Fix#11657
## Solution
Add a `ReflectKind` enum, add `Reflect::reflect_kind` which returns a
`ReflectKind`, and add `kind` method implementions to `ReflectRef`,
`ReflectMut`, and `ReflectOwned`, which returns a `ReflectKind`.
I also changed `AccessError` to use this new struct instead of it's own
`TypeKind` struct.
---
## Changelog
- Added `ReflectKind`, an enumeration over the kinds of a reflected type
without its data.
- Added `Reflect::reflect_kind` (with default implementation)
- Added implementation for the `kind` method on `ReflectRef`,
`ReflectMut`, and `ReflectOwned` which gives their kind without any
information, as a `ReflectKind`
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 likeReflectRef
,ReflectMut
, andReflectOwned
but only the kind of the type.This kinda already exists in bevy_reflect, used in the context of
Access
related 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.
The text was updated successfully, but these errors were encountered: