From 5cdb4b0adb55cf2995e999135c5f3e9d6da70843 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 13 Jun 2026 18:32:07 +0200 Subject: feat(engine): add discriminant & fields layouts to enum reflection --- engine-reflection/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine-reflection/src/lib.rs') diff --git a/engine-reflection/src/lib.rs b/engine-reflection/src/lib.rs index bad26df..c8b0004 100644 --- a/engine-reflection/src/lib.rs +++ b/engine-reflection/src/lib.rs @@ -80,6 +80,9 @@ pub struct Enum /// The enum only contains unit variants. pub is_unit_only: bool, + + pub discriminant_layout: Layout, + pub fields_layout: Option, } #[derive(Debug, Clone)] -- cgit v1.2.3-18-g5258