Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better debug output #65

Open
aDotInTheVoid opened this issue Jun 23, 2021 · 0 comments · May be fixed by #66
Open

Better debug output #65

aDotInTheVoid opened this issue Jun 23, 2021 · 0 comments · May be fixed by #66

Comments

@aDotInTheVoid
Copy link

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",
}
@aDotInTheVoid aDotInTheVoid linked a pull request Jun 23, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant