Skip to content

Missing Clone for Box #204

Open
Open
@douglas-raillard-arm

Description

@douglas-raillard-arm

Bumpalo's Box is missing a Clone implementation, which is a pretty big departure from std's Box. Bringing it back would require storing a &Bump inside the Box in addition to the &mut T to be able to allocate a new value inside the same arena.

That is also the way std is implemented:
https://doc.rust-lang.org/src/alloc/boxed.rs.html#198-201

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions