Skip to content

Cell should be Copy #20813

Description

@pythonesque

I'm not really sure why it isn't. It can only ever hold Copy data and Cell::new(some_cell.get()) has the same effect as a memcpy, so the effect of not making it Copy is mostly to just make it annoying to use types with Cells in them (since you can't #[derive(Copy)] on them, use them with the [Foo ; n] instantiation syntax in fixed-size arrays, put them in other Cells, etc.).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions