-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
derive(Zeroable) on fieldful enums and repr(C) enums #257
Merged
Lokathor
merged 9 commits into
Lokathor:main
from
zachs18:zeroable-derive-fieldful-enums
Sep 24, 2024
Merged
derive(Zeroable) on fieldful enums and repr(C) enums #257
Lokathor
merged 9 commits into
Lokathor:main
from
zachs18:zeroable-derive-fieldful-enums
Sep 24, 2024
Commits on Sep 13, 2024
-
Add support for deriving Zeroable for fieldful enums if:
1. the enum is repr(Int), repr(C), or repr(C, Int), 2. the enum has a variant with discriminant 0, 3. and all fields of the variant with discriminant 0 are Zeroable.
Configuration menu - View commit details
-
Copy full SHA for d2c1197 - Browse repository at this point
Copy the full SHA d2c1197View commit details -
Allow using derive(Zeroable) with explicit bounds. Update documentati…
…on and doctests.
Configuration menu - View commit details
-
Copy full SHA for ff316f6 - Browse repository at this point
Copy the full SHA ff316f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8e6fca - Browse repository at this point
Copy the full SHA c8e6fcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92f77c8 - Browse repository at this point
Copy the full SHA 92f77c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for d107b2a - Browse repository at this point
Copy the full SHA d107b2aView commit details
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for be6ece8 - Browse repository at this point
Copy the full SHA be6ece8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5ac207 - Browse repository at this point
Copy the full SHA b5ac207View commit details -
Add doc-comment for
get_fields
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4dc453a - Browse repository at this point
Copy the full SHA 4dc453aView commit details -
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1b02024 - Browse repository at this point
Copy the full SHA 1b02024View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.