diff --git a/src/rect.rs b/src/rect.rs index a99f97d..ce472fe 100644 --- a/src/rect.rs +++ b/src/rect.rs @@ -24,6 +24,7 @@ use std::hash::{Hash, Hasher}; use std::ops::{Add, Sub, Mul, Div}; /// A 2d Rectangle optionally tagged with a unit. +#[repr(C)] pub struct TypedRect { pub origin: TypedPoint2D, pub size: TypedSize2D,