-
Notifications
You must be signed in to change notification settings - Fork 265
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
Hasher trait not implemented for digests #49
Comments
Oh, I just noticed that the |
|
One way to circumvent this in your code is to define your generic wrapper type and implement struct MyDigest<D: Digest> {
d: D
}
impl<D: Digest> Hasher for MyDigest<D> {
// ..
} |
I ended up using a similar solution. Perhaps we could add a method to the |
In that case I will close this issue as we currently don't have plans regarding implementing |
The
std::hash::Hasher
trait is not implemented for these digests. The trait is identical to thedigest::Input
anddigest::FixedOutput
traits. Implementing it would be useful for me, because I'd like to have mystd::hash::Hash
implementation be usable with adigest::Digest
.The text was updated successfully, but these errors were encountered: