From 0820dde7d6099f87f9eda6240b64306900e00855 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 7 Jul 2026 00:52:05 +0200 Subject: feat(engine-reflection): add EnumVariantField type_name & type_reflection fns --- engine-reflection/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/engine-reflection/src/lib.rs b/engine-reflection/src/lib.rs index 8436e65..a76abce 100644 --- a/engine-reflection/src/lib.rs +++ b/engine-reflection/src/lib.rs @@ -220,6 +220,19 @@ pub struct EnumVariantField pub get_type: FnWithDebug>, } +impl EnumVariantField +{ + pub fn type_name(&self) -> &'static str + { + self.get_type_name.get() + } + + pub fn type_reflection(&self) -> Option<&'static Type> + { + self.get_type.get() + } +} + #[derive(Debug, Clone)] pub struct Field { -- cgit v1.2.3-18-g5258