diff --git a/crates/store/re_types/definitions/rerun/components/length.fbs b/crates/store/re_types/definitions/rerun/components/length.fbs index 54c509a7f956..0b4d9f209ec8 100644 --- a/crates/store/re_types/definitions/rerun/components/length.fbs +++ b/crates/store/re_types/definitions/rerun/components/length.fbs @@ -9,7 +9,8 @@ namespace rerun.components; struct Length ( "attr.python.aliases": "float", "attr.python.array_aliases": "float, npt.NDArray[np.float32]", - "attr.rust.derive": "Copy, PartialEq, PartialOrd, bytemuck::Pod, bytemuck::Zeroable" + "attr.rust.derive": "Copy, PartialEq, PartialOrd, bytemuck::Pod, bytemuck::Zeroable", + "attr.rust.repr": "transparent" ) { length: rerun.datatypes.Float32 (order: 100); } diff --git a/crates/store/re_types/src/components/length.rs b/crates/store/re_types/src/components/length.rs index 2000b1803cfe..d30925082cda 100644 --- a/crates/store/re_types/src/components/length.rs +++ b/crates/store/re_types/src/components/length.rs @@ -23,6 +23,7 @@ use ::re_types_core::{DeserializationError, DeserializationResult}; /// Measured in its local coordinate system; consult the archetype in use to determine which /// axis or part of the entity this is the length of. #[derive(Clone, Debug, Copy, PartialEq, PartialOrd, bytemuck::Pod, bytemuck::Zeroable)] +#[repr(transparent)] pub struct Length(pub crate::datatypes::Float32); impl ::re_types_core::SizeBytes for Length {