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

Implement DynamicReset on standard library containers? #2

Open
estokes opened this issue Jun 22, 2020 · 0 comments
Open

Implement DynamicReset on standard library containers? #2

estokes opened this issue Jun 22, 2020 · 0 comments

Comments

@estokes
Copy link

estokes commented Jun 22, 2020

Right now it is not possible to use standard container types like HashMap directly in a dynamic pool, and that is too bad because it would be very convenient. The reason is that DynamicReset is defined in the dynamic-pool crate, and HashMap is defined in the standard library, so users of this crate are not allowed to implement DynamicReset for HashMap. However dynamic-pool could provide those implementations because you define the trait.

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

No branches or pull requests

1 participant