Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider providing a derive macro #38

Open
Kixunil opened this issue Feb 3, 2025 · 0 comments
Open

Consider providing a derive macro #38

Kixunil opened this issue Feb 3, 2025 · 0 comments

Comments

@Kixunil
Copy link

Kixunil commented Feb 3, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant