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
I searched through the issues, but I couldn't find anything related to this use case.
Would it be possible to support the following example in some way? It seems like a natural use of bytemuck::from_bytes, but AnyBitPattern requires both Sized and Copy, so I it's not possible right now. Is handling DSTs too complicated or impossible in the general case? Is this just a situation that will always require manual unsafe?
This is entirely possible it's just that we haven't quite put in the design work yet. It's not very different from the existing TransparentWrapper stuff.
I searched through the issues, but I couldn't find anything related to this use case.
Would it be possible to support the following example in some way? It seems like a natural use of
bytemuck::from_bytes
, butAnyBitPattern
requires bothSized
andCopy
, so I it's not possible right now. Is handling DSTs too complicated or impossible in the general case? Is this just a situation that will always require manualunsafe
?The text was updated successfully, but these errors were encountered: