Skip to content

Does serializing a slotmap result in old keys becoming available again? #86

@zesterer

Description

@zesterer

Hello,

I'm using the serde feature to serialize both keys and a SlotMap. When deserializing, I want to be sure that old keys (i.e: those that no longer correspond to an entry in the SlotMap) are not able to accidentally reoccur when inserting new items. Is it the case that slotmap will ensure that old index + generation pairs cannot be recreated, even when serializing and then deserializing?

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