Conversation
→ Trait now contains associated constants rather than non-`const` functions.
→ `LowerBounded` and `UpperBounded` are now supertraits of `Bounded`, not subtraits.
2) Expanded implementations to also cover `NonZero` data-types.
3) Made the code DRYer, with regards to the implementation of `bounded_impl!`.
4) Added a couple tests.
|
To clarify, as the code is currently written all tests pass. But I think something's amiss. I just tried a toy program that used the new The closest I've come to making some semblance of sense out of this is that, apparently, there are several macros in the test suite (eg I ultimately managed to get it to work by 1) adding |
Agreed so far...
This is bizarre. I would not expect Even in the same file, test |
|
I want this so bad. |
→ Trait now contains associated constants rather than non-
constfunctions.→
LowerBoundedandUpperBoundedare now supertraits ofBounded, not subtraits.NonZerodata-types.bounded_impl!.