use shared_memory::SharedMemCast; #[derive(SharedMemCast)] pub struct MyStruct { x: u8, } #[derive(SharedMemCast)] pub struct MyStruct2 { x: u8, y: f64, z: i32, w: usize, } fn assert_impl() {} fn main() { assert_impl::(); assert_impl::(); }