Guarantee NonZero, NonMax have same Ord, Hash as underlying type
Make Hash impl for NonMax satisfy this property.
All other trait implementations already satisfied this.
Changed
- Officially guarantee that
NonMax<T>andNonZero<T>implementHashthe same asT(zoxoyvnx) - Similarly guarantee that
NonMax<T>andNonZero<T>implementOrdthe same asT(lzlwsrtp)- This has always been the case for both types.
Fixes
- The
Hashimpl forNonMaxnow behaves the same as the underlying typeT. (ppmqkvzx)- This property has always been true of
NonZero, but has not been true forNonMax
- This property has always been true of