Commit Graph

11 Commits

Author SHA1 Message Date
gifnksm a325a566c6 update to latest rustc
Now, arithmetic binary operator traits take operands by value,
but non-copyable types such as `BigUint` should not always moved out when
applying operators.

This commit implements these operators not only for bare structs also
these references.
By-value implementations are forwarded to by-reference implementations
for now. In the future, by-value implementations may be replaced with
more efficient implementations (for example, the implementation that
reuses moved buffers.)
2014-12-16 23:44:16 +09:00
gifnksm 1533fe2017 fix deperecation warning 2014-12-09 23:48:37 +09:00
gifnksm d89fbbf044 Add `deriving(Copy)` for `Copy`able structs/enums/ 2014-12-09 23:46:39 +09:00
gifnksm b20dda2307 Update to iter stabilization.
`AdditiveIterator::sum` and `MultiplicativeIterator::product` now take bare self.
2014-11-27 23:06:06 +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
gifnksm d3fd33a878 Fix lint name warning 2014-11-05 07:32:00 +09:00
Alex Crichton 6c56fe940c Update to Rust master
Closes #17
2014-10-21 09:27:08 -07:00
gifnksm f1d975b6f1 Migrate to new `cfg` attribute syntax` 2014-10-10 22:56:15 +09:00
gifnksm 2fe050c471 Convert statics to constants 2014-10-10 22:50:22 +09:00
Aaron Turon 482f0e0b74 Initial seeding from rust repo 2014-09-16 10:35:35 -07:00