Skip to content

Add a way to add new immediately-detached keys #145

Open

Description

@orlp

I should add the following to SlotMap and DenseSlotMap (name up for debate):

fn insert_detached(&mut self) -> K;

This will return a key which is immediately in a detached state that can later be passed to reattach.

With this you can build your own insert_with_key but without being forced into a callback structure.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions