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 #260

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

Implement digest::DynDigest #260

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?

@oconnor663
Copy link
Member

Sounds like a good idea to me. If we put the impl next to the Digest impl in src/traits.rs, it will be gated by the traits-preview feature automatically.

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

2 participants