You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As written heremin_const_generics are not sufficient for our needs. We also probably will need for rust-lang/rust#76560 to be resolved and stabilized as well (hopefully in a different form from the approach which the feature uses now).
We need min_const_generics + traits (i.e. using an associated constant as a const generic), so unfortunately the former alone is insufficient for our use cases.
There are a few places where we could consider const generics immediately. Namely in the der crate I use typenum (sans generic-array) to control the size of BigUint, but offhand that's really the only one I can think of where they're immediately applicable.
Activity
newpavlov commentedon Feb 1, 2021
As written here
min_const_genericsare not sufficient for our needs. We also probably will need for rust-lang/rust#76560 to be resolved and stabilized as well (hopefully in a different form from the approach which the feature uses now).burdges commentedon Feb 1, 2021
I'll close this in favor of #238 then
tarcieri commentedon Feb 1, 2021
We need
min_const_generics+ traits (i.e. using an associated constant as a const generic), so unfortunately the former alone is insufficient for our use cases.There are a few places where we could consider const generics immediately. Namely in the
dercrate I usetypenum(sansgeneric-array) to control the size ofBigUint, but offhand that's really the only one I can think of where they're immediately applicable.