You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be helpful to have a macro deriving ArbitraryOrd, just like derive(Ord). I have also realized there are hacks that allow us to emit code that is specialized - can use Ord or ArbitraryOrd depending on which is implemented and picks one specific of them if both are. (Note that this cannot be done with generics, it needs deref trick or i32 fallback.)
This is not required for 1.0 but it could be very helpful for some crates.
The text was updated successfully, but these errors were encountered:
It'd be helpful to have a macro deriving
ArbitraryOrd
, just likederive(Ord)
. I have also realized there are hacks that allow us to emit code that is specialized - can useOrd
orArbitraryOrd
depending on which is implemented and picks one specific of them if both are. (Note that this cannot be done with generics, it needs deref trick ori32
fallback.)This is not required for 1.0 but it could be very helpful for some crates.
The text was updated successfully, but these errors were encountered: