News for hackers. Stuff that matters.
Re:Type-Level Programming in Rust by chrismorgan on Monday October 05, 2020 @02:36PM (#24690596)
I knew there was another #[repr(…)] value, just couldn’t remember its name and didn’t look it up. Thanks for pointing it out. Yep, #[repr(transparent)] is a correct way of fixing the undefined behaviour—and if it won’t compile, then #[repr(C)] will do.

There are no comments on this comment yet.