diff options
Diffstat (limited to 'engine-reflection/src')
| -rw-r--r-- | engine-reflection/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine-reflection/src/lib.rs b/engine-reflection/src/lib.rs index 53aa953..0382598 100644 --- a/engine-reflection/src/lib.rs +++ b/engine-reflection/src/lib.rs @@ -110,7 +110,11 @@ pub struct Field pub name: Option<&'static str>, pub index: usize, pub layout: Layout, - pub byte_offset: Option<usize>, + + /// Byte offset to the field relative to the start of the type containing it. If the + /// type containing the field is a enum, this offset will include the enum tag + pub byte_offset: usize, + pub type_id: TypeId, pub type_name: &'static str, pub get_type: FnWithDebug<Option<&'static Type>>, |
