Hacker News new | ask | show | jobs
by kzrdude 3075 days ago
Rust `#[repr(C)]` is about representation in memory and function call ABI for the type. C rules about casting through union are not relevant to Rust code.