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

Add Map::new() function and Default implementation to create new, empty map #249

Merged
merged 3 commits into from Apr 27, 2022
Merged

Conversation

msrd0
Copy link
Contributor

@msrd0 msrd0 commented Apr 17, 2022

This allows for creating empty maps without having to compile macros or codegen first.

phf/src/map.rs Outdated Show resolved Hide resolved
msrd0 and others added 2 commits April 27, 2022 14:27
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
@msrd0 msrd0 changed the title Add Map::new_empty() function to create new, empty map Add Map::new() function and Default implementation to create new, empty map Apr 27, 2022
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@JohnTitor JohnTitor merged commit baac7d0 into rust-phf:master Apr 27, 2022
@msrd0 msrd0 deleted the map-new-empty branch April 28, 2022 10:36
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 this pull request may close these issues.

None yet

2 participants