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

refactor: implement SolType for {Ui,I}nt<N> and FixedBytes<N> with const-generics #92

Merged
merged 4 commits into from
Jun 10, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Jun 10, 2023

Makes implementing traits on these types much easier, since it goes from making a macro for each impl, to just restraining the impl to where X: SupportedY.

Inspired by std::simd's approach with LaneCount<N> and SupportedLaneCount

@DaniPopes DaniPopes requested a review from prestwich June 10, 2023 18:19
@prestwich
Copy link
Member

significant improvement 👀

@prestwich prestwich merged commit 453d62f into main Jun 10, 2023
@DaniPopes DaniPopes deleted the dani/const-sol-types branch June 10, 2023 23:48
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

Successfully merging this pull request may close these issues.

2 participants