-
Notifications
You must be signed in to change notification settings - Fork 156
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
uefi-raw: unified boolean type #1307
base: main
Are you sure you want to change the base?
Conversation
So this ends up being similar to enums, where we carefully construct wrappers with |
This way we can be ABI-compatible and guarantee lack of UB, while being more precise in interfaces.
I've come up with a new design. What do you think? Open Question:
|
I think this design looks good.
Yes, I think loosening the requirements so that any non-zero value is treated as
I feel that it does. For example, with the field In this particular case, I think the easiest thing to do is to change the definition to |
This streamlines the existing usages of
u8
andbool
. Note thatBootPolicy
from #1297 is seamlessly integrated intou8
andbool
.Steps to Undraft
Checklist