We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
use num::{BigUint, Integer, One}; fn main() { BigUint::one().extended_gcd(&BigUint::one()); }
fails with thread 'main' panicked at 'Cannot subtract b from a because b is larger than a.'
thread 'main' panicked at 'Cannot subtract b from a because b is larger than a.'
Maybe the implementation should be specific to BigInt rather than being part of the Integer trait?
BigInt
Integer
The text was updated successfully, but these errors were encountered:
Yeah, I regret not making that require Signed -- see rust-num/num-integer#40.
Signed
It's still useful in the Integer trait for other signed integer types, like i32.
i32
Sorry, something went wrong.
Thanks for responding! That makes sense. I'll close this since it's a dupe.
No branches or pull requests
fails with
thread 'main' panicked at 'Cannot subtract b from a because b is larger than a.'
Maybe the implementation should be specific to
BigInt
rather than being part of theInteger
trait?The text was updated successfully, but these errors were encountered: