Hacker News new | ask | show | jobs
by omega_rythm 4178 days ago
You really should have a look at the rust code this guy wrote. I would not call that last optimization type safe.
1 comments

How so? The only unsafe part is the transmute which only saves 7 bytes anyways :P
Even that is still type safe, just not portable. After all, every part of the memory is a collection of bytes (that is, a slice of u8) – whether you can access them is another story.