diff options
| author | bors <bors@rust-lang.org> | 2013-04-05 22:00:50 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-05 22:00:50 -0700 |
| commit | bdd2439529c23b4fcd2676d7427c45ca223385ce (patch) | |
| tree | b722a99b095de611361906d112ffa5b8d9c71fc2 /src/rt/rust_run_program.cpp | |
| parent | f678d63507a779d81810c342dd1bdc828fb983ba (diff) | |
| parent | c6949b3669d23a1694b964108f21d5200c985cb5 (diff) | |
| download | rust-bdd2439529c23b4fcd2676d7427c45ca223385ce.tar.gz rust-bdd2439529c23b4fcd2676d7427c45ca223385ce.zip | |
auto merge of #5733 : dbaupp/rust/std-complex-rational, r=thestinger
This adds two generic data types, `Ratio` and `Cmplx` (and some aliases for useful instances, e.g. `Ratio<int>` and `Cmplx<f64>`), and basic arithmetic support, as well as `.to_str` (for both) and `.from_str` (for rational). The complex number implementation doesn't solve #1284 other than getting something into the libraries, specifically it doesn't even try to address C interop. If the complex part of this gets merged, maybe it's worth closing that issue and reopening more specific issue(s) about the failings. The implementations can be fleshed out when the numeric traits stabilise (and trait inheritance works).
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
