Hacker News new | ask | show | jobs
by fvncc 411 days ago
There are libraries that help with these conversions. See e.g.: https://docs.rs/bytemuck/latest/bytemuck/trait.TransparentWr...