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

Simplify Swizzle trait #367

Merged
merged 3 commits into from
Oct 21, 2023
Merged

Simplify Swizzle trait #367

merged 3 commits into from
Oct 21, 2023

Conversation

calebzulawski
Copy link
Member

@calebzulawski calebzulawski commented Oct 1, 2023

This is a possible answer to the questions about swizzles raised in #364. This API isn't necessary perfect, but it's now a single unobtrusive trait that's relatively easy to use.

  • Swizzle is no longer parameterized by the input length
  • replaced Swizzle2 and Which by Swizzle::concat_swizzle
  • added mask swizzles to resolve swizzle for Mask #268
  • replaced various supporting traits and functions with inline const {} blocks

@calebzulawski
Copy link
Member Author

Ignore the const generics failures for now--I filed an issue in rust-lang/rust#116320

Copy link
Member

@programmerjake programmerjake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than the comment, lgtm

@calebzulawski calebzulawski merged commit f510c6b into master Oct 21, 2023
66 checks passed
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.

swizzle for Mask
2 participants