bevy/crates/bevy_reflect/src/enums
Doonv 054134fba2
Add ReflectKind (#11664)
# Objective

Fix https://github.com/bevyengine/bevy/issues/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`
2024-02-07 00:36:23 +00:00
..
dynamic_enum.rs Add ReflectKind (#11664) 2024-02-07 00:36:23 +00:00
enum_trait.rs Remove unnecessary path prefixes (#10749) 2023-11-28 23:43:40 +00:00
helpers.rs Use a fixed state hasher in bevy_reflect for deterministic Reflect::reflect_hash() across processes (#7583) 2023-02-17 15:37:35 +00:00
mod.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
variants.rs bevy_reflect: Binary formats (#6140) 2022-11-04 02:22:54 +00:00