diff options
| author | bors <bors@rust-lang.org> | 2013-10-27 22:41:18 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-10-27 22:41:18 -0700 |
| commit | cb5b21eba713ff3888b2741db4c9e7d841cfde02 (patch) | |
| tree | 29532a6552588243141ca65de295f57e1d0f1d44 /src/rt/sync/rust_thread.cpp | |
| parent | 9293a4127bffe08f6a6e2fbbec9e52229291c58c (diff) | |
| parent | 7d5c7b8083acc8fe6bb466bb11c60d597384f978 (diff) | |
| download | rust-cb5b21eba713ff3888b2741db4c9e7d841cfde02.tar.gz rust-cb5b21eba713ff3888b2741db4c9e7d841cfde02.zip | |
auto merge of #10050 : gifnksm/rust/ratio-methods, r=pcwalton
After merging 0ada7c7, user code have not been able to access to `Ratio`'s numerator and denominator fields. In some algorithms, it is needed to get an rational number's numerator or denominator, but keeping these fields private is necessary for guaranteeing that `Ratio` numbers are irreducible. So, I added the getter methods `numer()` and `denom()`. As a bonus, this commit adds utility methods relating to the ratio-integer conversion.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions
