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
There's no safe way to no-op convert between allocated bytes and allocated T when T is unaligned and FromBytes + IntoBytes. An Immutable bound is not needed in any case because Box is non-aliasing like &mut.
Future design thinking: what about Rc and Arc? Why is there not impl ByteSlice for Box<T> so it can be used in Ref with looser requirements (T: Unalign is no longer needed)?
The text was updated successfully, but these errors were encountered:
There's no safe way to no-op convert between allocated bytes and allocated
T
whenT
is unaligned andFromBytes + IntoBytes
. AnImmutable
bound is not needed in any case becauseBox
is non-aliasing like&mut
.Future design thinking: what about
Rc
andArc
? Why is there notimpl ByteSlice for Box<T>
so it can be used inRef
with looser requirements (T: Unalign
is no longer needed)?The text was updated successfully, but these errors were encountered: