Skip to content
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

Closed
hauleth opened this issue Sep 17, 2015 · 0 comments

Comments

@hauleth
Copy link
Member

hauleth commented Sep 17, 2015

As in title. As any integer type can be expressed as BigInt and any unsigned integer can be expressed as BigUint it would be useful to implement From<T> trait for them. It would allow functions to take T: Into<BigInt> as parameter and call it with "bare" integers without weird calls and unwraps.

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 homu closed this as completed in #138 Dec 13, 2015
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
remexre pushed a commit to remexre/num that referenced this issue Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant