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 digest::DynDigest #93

Open
raspi opened this issue Sep 16, 2022 · 1 comment
Open

Implement digest::DynDigest #93

raspi opened this issue Sep 16, 2022 · 1 comment

Comments

@raspi
Copy link

raspi commented Sep 16, 2022

According to https://crates.io/crates/digest/reverse_dependencies this crate uses digest crate.

Would it be possible to implement digest::DynDigest trait so that this hasher could be used in for example HashMaps which uses HashMap<&str, Box<dyn digest::DynDigest>> where you can iterate through multiple different hashers?

@shepmaster
Copy link
Owner

I believe that can be supported. Feel free to submit a PR (ideally for all the versions of digest we support / that have DynDigest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants