Commit Graph

18 Commits

Author SHA1 Message Date
gifnksm b20dda2307 Update to iter stabilization.
`AdditiveIterator::sum` and `MultiplicativeIterator::product` now take bare self.
2014-11-27 23:06:06 +09:00
Alex Crichton 39acd8f2fb Update tests to rust master 2014-11-20 12:21:06 -08:00
gifnksm 233c02030d Fix for namespaced enums. 2014-11-18 21:09:53 +09:00
gifnksm 29011d14d9 std::from_str::FromStr -> std::str::FromStr 2014-11-17 22:38:12 +09:00
gifnksm 2155e7d2ee Add numeric functions and `traits` module that provide numeric traits for generic
mathematcs.

Import numeric traits and functions that were removed from the standard library.
This also implements `AdditiveIterator` and `MultiplicativeIterator` for
`BigUint` and `BigInt`.

closes #28
2014-11-16 19:37:49 +09:00
gifnksm 7a7c5fb2ad Implements `Encodable` and `Decodable`
Fixes #27
2014-11-13 20:54:42 +09:00
Joseph Crail e09b009edb Remove unused imports. 2014-11-07 21:21:23 -05:00
Joseph Crail 40873fb0c6 Fix two non uppercase globals. 2014-11-06 22:47:10 -05:00
gifnksm 272d6edb79 Update to latest rustc 2014-11-06 22:09:03 +09:00
gifnksm 163646cd63 Use sliciing_syntax 2014-11-05 07:32:00 +09:00
gifnksm 436f954627 bigint: Refactor the `parse_bytes` and `from_str_radix`.
This follows the changes of "Separate string->integer implementation in strconv" (rust-lang/rust@138b76b).
This allows `parse_bytes` to be removed without breaking `libnum` code.
2014-11-05 07:31:53 +09:00
Jorge Aparicio ee6501c81a parse_bytes has been removed, use from_str_radix instead
see rust-lang/rust#18536
2014-11-04 09:20:18 -05:00
Zbigniew Siciarz 462f7131bc fail -> panic 2014-10-30 14:20:15 +01:00
Alex Crichton 6c56fe940c Update to Rust master
Closes #17
2014-10-21 09:27:08 -07:00
gifnksm ac37b913d9 Fix `non_uppercase_statics` warnings of private constants. 2014-10-10 22:54:30 +09:00
gifnksm 2fe050c471 Convert statics to constants 2014-10-10 22:50:22 +09:00
Jorge Aparicio dc3fed0add Rename `Zero` variant to `NoSign` 2014-09-20 19:58:59 -05:00
Aaron Turon 482f0e0b74 Initial seeding from rust repo 2014-09-16 10:35:35 -07:00