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

Add Bitwise operations to NumOps #347

Closed
blazeshomida opened this issue Feb 3, 2025 · 1 comment
Closed

Add Bitwise operations to NumOps #347

blazeshomida opened this issue Feb 3, 2025 · 1 comment

Comments

@blazeshomida
Copy link

It would be nice to have it complete to where I can not only use normal arithmetic but bitwise operations such as BitAnd, BitOr, BitXor, etc.

@cuviper
Copy link
Member

cuviper commented Feb 4, 2025

It would be a breaking change to add that, since existing NumOps types might not satisfy the added requirements, but we can add it in a new trait like #232 suggests.

It's also trivial to just define your own local trait in this case, since there are no direct methods to define.

@cuviper cuviper closed this as completed Feb 4, 2025
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

2 participants