jhpratt / deranged

Proof of concept ranged integers in Rust.
Apache License 2.0
38 stars 5 forks source link

Add support for `BigInt`/`BigUint` #1

Closed jhpratt closed 2 years ago

jhpratt commented 3 years ago

This should be done behind a feature gate. It can be auto-generated by the macro whenever the feature is enabled. As BigInt is larger than BigUint, so the latter should be preferred if negative numbers are not needed.

jhpratt commented 3 years ago

After minimal checking, this will be impossible for quite a while. Custom types must be permitted in const generics and allocation must be supported in const fn among presumably other blockers.

jhpratt commented 2 years ago

This crate is intended to serve as a playground for a future implementation in std, where BigInt and BigUint do not exist. I am closing this issue for that reason.