Skip to content

Better debug output #65

@aDotInTheVoid

Description

@aDotInTheVoid

Currently Debug output is does by Derivieing. This prints something like

SlotMap {
                    slots: [
                        Slot {
                            version: 0,
                            next_free: 0,
                        },
                    ],
                    free_head: 1,
                    num_elems: 0,
                    _k: PhantomData,
                }

As a user of the library, this is not helpfull, as what a user would want to see is what keys and values they have, and not the interals around the free list.

A better Output would be something like

{
    1v3: "fdsf",
    3v2: "fdd",
}

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