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 believe we can implement IntoBytes for Cell<T: IntoBytes>. Per Cell's documentation:
Memory layout
Cell<T> has the same memory layout and caveats as UnsafeCell. In particular, this means that Cell has the same in-memory representation as its inner type T.
It looks like we can essentially copy the implementations of TransparentWrapper, TryFromBytes and other traits for UnsafeCell, but I can't quite make our TryFromBytes testing infra happy.
I believe we can implement
IntoBytes
forCell<T: IntoBytes>
. PerCell
's documentation:— from https://doc.rust-lang.org/std/cell/struct.Cell.html#memory-layout
The text was updated successfully, but these errors were encountered: