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

Allow using an arbitrary hash_fn for generation #294

Merged
merged 1 commit into from Oct 28, 2023

Conversation

Swatinem
Copy link
Contributor

Solves part of #88 by providing a separate function to customize the hashing function during generation. That way, one can avoid usage of the default SipHash as well as avoid having a PhfHash bound on the keys. This custom hash function can be used in combination with get_index directly.

Solves part of rust-phf#88 by providing a separate function to customize the hashing function during generation.
That way, one can avoid usage of the default SipHash as well as avoid having a `PhfHash` bound on the keys.
This custom hash function can be used in combination with `get_index` directly.
@JohnTitor
Copy link
Member

Sorry for the delay, thank you!

@JohnTitor JohnTitor added this pull request to the merge queue Oct 28, 2023
Merged via the queue into rust-phf:master with commit 8ecc019 Oct 28, 2023
2 checks passed
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