Rust supports punning via pointer casting, but you'll want to use #[repr(C)] on any data types used