-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add const initializers #181
Comments
Only |
@hjiayz -- your use of |
The current proposal about const allocations is here: rust-lang/lang-team#129 |
@cuviper |
No, that takes Even if we made that public, it's also invalid to convert your https://doc.rust-lang.org/std/vec/struct.Vec.html#guarantees
|
@cuviper |
|
|
Hello, I've been using
num-bigint
forrasn
. I've been working on adding static information about ASN.1's constrained types, and one of things I need for this is having a constRange<BigInt>
for allowing users to be able to specify arbitrary integer ranges for their type, however I was surprised that there is no const initializer forBigInt
.It would be nice if
new
was madeconst
so that you could provideBigInt
types in a const context like you can with builtin integers.The text was updated successfully, but these errors were encountered: