-
Notifications
You must be signed in to change notification settings - Fork 144
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
Implement From<T>
for BigInt
/BigUint
for signed and unsigned integer types (respectively)
#117
Comments
ollie27
added a commit
to ollie27/rust_num
that referenced
this issue
Dec 12, 2015
From all primative unsigned ints to BigUint From all primative ints to BigInt From BigUint to BigInt Closes: rust-num#117
ollie27
added a commit
to ollie27/rust_num
that referenced
this issue
Dec 12, 2015
From all primative unsigned ints to BigUint From all primative ints to BigInt From BigUint to BigInt Closes: rust-num#117
homu
added a commit
that referenced
this issue
Dec 13, 2015
bigint: add From implementations From all primative unsigned ints to BigUint From all primative ints to BigInt From BigUint to BigInt Closes: #117
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As in title. As any integer type can be expressed as
BigInt
and any unsigned integer can be expressed asBigUint
it would be useful to implementFrom<T>
trait for them. It would allow functions to takeT: Into<BigInt>
as parameter and call it with "bare" integers without weird calls and unwraps.The text was updated successfully, but these errors were encountered: