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
Hello and thanks for the great work to every contributor.
I was thinking, however rare, but maybe bitwise derives are missing for custom flag types (unnamed structs of bools or even vec/array of bools or something like that).
Nothing fancy, but maybe for starters we can have some examples like below:
Proposed derives:
BitwiseAnd
BitwiseOr
BitwiseXor
BitwiseBool = BitwiseAnd + BitwiseOr + BitwiseXor
I'll be happy to contribute it myself however I am actually not certain about the quality of my code in Rust yet and also the package seems a bit over complicate and without a newbie friendly contribution guide.
@Davoodeh I'm not against having such derives in derive_more, but somewhat opposed to Bitwise* naming. As for me, it would be nice to preserve granularity and naming from std, in the manner we do for other traits.
Hello and thanks for the great work to every contributor.
I was thinking, however rare, but maybe bitwise derives are missing for custom flag types (unnamed structs of bools or even vec/array of bools or something like that).
Nothing fancy, but maybe for starters we can have some examples like below:
Proposed derives:
BitwiseAnd
BitwiseOr
BitwiseXor
BitwiseBool
=BitwiseAnd + BitwiseOr + BitwiseXor
I'll be happy to contribute it myself however I am actually not certain about the quality of my code in Rust yet and also the package seems a bit over complicate and without a newbie friendly contribution guide.
Here is an example implementation: https://github.com/Davoodeh/bitwise/blob/master/src/lib.rs
The text was updated successfully, but these errors were encountered: