We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This enables us to write
#[deriving (Hash)] struct X { ... }
to get hash(&self, hasher: &mut H) instead of manually defining how to feed values into the hasher.
hash(&self, hasher: &mut H)
As part of this we'll be able to define hashes without having to go through the indirection of serialization, which is nice
I'll handle this myself over the next few days, but feedback is welcome
The text was updated successfully, but these errors were encountered:
Hasher is restricted to u64 output, so maybe we can't do this... See rust-lang/rfcs#1768
Sorry, something went wrong.
We extended Hasher to GeneralHasher to solve this.
eddiew
plra
No branches or pull requests
This enables us to write
to get
hash(&self, hasher: &mut H)
instead of manually defining how to feed values into the hasher.
As part of this we'll be able to define hashes without having to go through the indirection of serialization, which is nice
I'll handle this myself over the next few days, but feedback is welcome
The text was updated successfully, but these errors were encountered: