You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convenience methods for bytemuck? slice.as_rgba() vs bytemuck::cast_slice::<Rgba<u8>>(slice)
Personally, I don't think using bytemuck is that bad as it is more explicit and ideally you would only be doing bit-casts when transferring data in or out of a strongly typed rust system so it shouldn't come up that often.
The text was updated successfully, but these errors were encountered:
I'm not opposed to creating a helper trait for postfix bytemucking, but shouldn't that belong in the bytemuck crate rather than in this crate? You could just implement the helper trait locally in the crate you want to use it in, but I imagine that might become a maintenance burden if you have multiple crates where you'd like to use it. Perhaps a small helper crate?
From #64
Personally, I don't think using
bytemuck
is that bad as it is more explicit and ideally you would only be doing bit-casts when transferring data in or out of a strongly typed rust system so it shouldn't come up that often.The text was updated successfully, but these errors were encountered: