rust-num / num-traits

Numeric traits for generic mathematics in Rust
Apache License 2.0
732 stars 135 forks source link

Non-primitive integer trait #219

Closed CraftSpider closed 3 years ago

CraftSpider commented 3 years ago

It would be nice to have a trait that represents any integer, not just copyable or primitive ones. That way one could also abstract over, say, a BigInt type, or any similar thing.

cuviper commented 3 years ago

The num-integer crate has Integer.

CraftSpider commented 3 years ago

Thanks, that's what I'm looking for. Though kind of sad it's spread into another crate, it feels like it would fit nicely alongside Real in this one. But I understand if that's considered not really in-scope.