We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Basically when enum members define the bitmask, and the decoded output is the superposition of the enum members.
Something like
type feature_mask = | FEATURE1 [@value 1] | FEATURE2 [@value 8] | FEATURE3 [@value 0x400] [@@deriving maskenum, show]
And show attribute will generate the "FEATURE1 | FEATURE3" for 0x401 value for example.
show
The text was updated successfully, but these errors were encountered:
I can add this feature if other people agree it is useful
Sorry, something went wrong.
No branches or pull requests
Basically when enum members define the bitmask, and the decoded output is the superposition of the enum members.
Something like
And
show
attribute will generate the "FEATURE1 | FEATURE3" for 0x401 value for example.The text was updated successfully, but these errors were encountered: