diff options
Diffstat (limited to 'engine-reflection')
| -rw-r--r-- | engine-reflection/src/lib.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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<Option<&'static Type>>, } +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 { |
