4 ms·
As long as the wrapper is marked as transparent, it's safe to transmute the wrappers. If you don't want unsafe, you can make use of this safe derive: https://d
by conradludgate 1y ago
As long as the wrapper is marked as transparent, it's safe to transmute the wrappers.
If you don't want unsafe, you can make use of this safe derive:
https://docs.rs/bytemuck/latest/bytemuck/trait.TransparentWrapper.html https://docs.rs/bytemuck/latest/bytemuck/trait.TransparentWr...