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

Associated constant generic as parameter of StatefulHasher #131

Closed
mriise opened this issue Jun 11, 2021 · 1 comment
Closed

Associated constant generic as parameter of StatefulHasher #131

mriise opened this issue Jun 11, 2021 · 1 comment

Comments

@mriise
Copy link
Contributor

mriise commented Jun 11, 2021

Not being able to have it as associate constant in current stable Rust sucks :-/

I guess we leave it like that then, until it;s possible in stable Rust? What do others think?

Originally posted by @vmx in #116 (comment)

@mriise mriise changed the title Not being able to have it as associate constant in current stable Rust sucks :-/ Associated constant generic as parameter of StatefulHasher Jun 11, 2021
@mriise
Copy link
Contributor Author

mriise commented Jun 11, 2021

Wait for const_generic to be more stabilized to support this

impl StatefulHasher for Hasher20 {
    const SIZE: usize;
    type Digest: Digest<Self::SIZE>;
}

@mriise mriise closed this as completed Oct 30, 2021
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

1 participant