-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add traits for primitive numeric types #6071
Closed
Closed
Commits on Apr 25, 2013
-
Configuration menu - View commit details
-
Copy full SHA for ad0b337 - Browse repository at this point
Copy the full SHA ad0b337View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbc2e99 - Browse repository at this point
Copy the full SHA dbc2e99View commit details -
Minor style improvements for test functions
Use argument pattern-matching for test_division_rule and remove visibility specifier for test_signed
Configuration menu - View commit details
-
Copy full SHA for f40be99 - Browse repository at this point
Copy the full SHA f40be99View commit details
Commits on Apr 26, 2013
-
Configuration menu - View commit details
-
Copy full SHA for b624210 - Browse repository at this point
Copy the full SHA b624210View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c07f5e - Browse repository at this point
Copy the full SHA 4c07f5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d073745 - Browse repository at this point
Copy the full SHA d073745View commit details -
Configuration menu - View commit details
-
Copy full SHA for faaf3bf - Browse repository at this point
Copy the full SHA faaf3bfView commit details -
Combine PrimitiveInt, Int, and Uint traits into one single trait
Having three traits for primitive ints/uints seemed rather excessive. If users wish to specify between them they can simply combine Int with either the Signed and Unsigned traits. For example: fn foo<T: Int + Signed>() { … }
Configuration menu - View commit details
-
Copy full SHA for 6efbbf2 - Browse repository at this point
Copy the full SHA 6efbbf2View commit details -
This is a temporary trait until we have default methods. We don't want to encumber all implementors of Ord by requiring them to implement these functions, but at the same time we want to be able to take advantage of the speed of the specific numeric functions (like the `fmin` and `fmax` intrinsics).
Configuration menu - View commit details
-
Copy full SHA for 6cc7107 - Browse repository at this point
Copy the full SHA 6cc7107View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7cf89f - Browse repository at this point
Copy the full SHA b7cf89fView commit details -
Add additional constants to primitive floating point numbers
These follow the values defined in the C99 standard
Configuration menu - View commit details
-
Copy full SHA for 4cc9d0b - Browse repository at this point
Copy the full SHA 4cc9d0bView commit details
Commits on Apr 27, 2013
-
Configuration menu - View commit details
-
Copy full SHA for 32df8ed - Browse repository at this point
Copy the full SHA 32df8edView commit details -
The `target_word_size` attribute is always available at compile time, so there is no need for a fallback.
Configuration menu - View commit details
-
Copy full SHA for 35f33c1 - Browse repository at this point
Copy the full SHA 35f33c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9d099d - Browse repository at this point
Copy the full SHA c9d099dView commit details -
5
Configuration menu - View commit details
-
Copy full SHA for 9cdf402 - Browse repository at this point
Copy the full SHA 9cdf402View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.