about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-10-27 22:41:18 -0700
committerbors <bors@rust-lang.org>2013-10-27 22:41:18 -0700
commitcb5b21eba713ff3888b2741db4c9e7d841cfde02 (patch)
tree29532a6552588243141ca65de295f57e1d0f1d44 /src/rt/sync/rust_thread.cpp
parent9293a4127bffe08f6a6e2fbbec9e52229291c58c (diff)
parent7d5c7b8083acc8fe6bb466bb11c60d597384f978 (diff)
downloadrust-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