Implement LowerBounded and UpperBounded for Ratio - #138
Conversation
|
I wonder, is there a reason you chose these one-sided bounds rather than just |
|
I am pretty sure it is related to A compromise might be |
|
Yeah, there's a FIXME in num-traits about changing to a supertrait (if we ever do a breaking change there). It's just a historical artifact that In the current places where we do use
This is basically just FWIW, the original num-traits motivation was about ranges: rust-num/num-traits#208 |
|
I think my original use-case was making a generic exponential search which can then be combined with a binary search to search over No matter what, why not just add the implementation? |
No description provided.