Skip to content

Implement IntoBytes for Cell<T: IntoBytes> #1253

@jswrenn

Description

@jswrenn

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.

— from https://doc.rust-lang.org/std/cell/struct.Cell.html#memory-layout

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions