dnsl48 / fraction

[Rust] Lossless fractions and decimals; drop-in float replacement
Apache License 2.0
83 stars 25 forks source link

Add support for ruint? #110

Open javamonn opened 5 months ago

javamonn commented 5 months ago

Curious if you'd be open to a PR adding support for ruint in fraction and decimal as a num-bigint alternative. I think the constraints would all work. ruint supports conversions into num-bigint, but having native support would be nice.

dnsl48 commented 5 months ago

hi @javamonn, sure, that would be a nice feature to have. It also feels like a relatively easy thing to do. Both GenericFraction and GenericDecimal should work seamlessly with anything implementing the generic::GenericInteger trait.