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

derive(Zeroable) on fieldful enums and repr(C) enums #257

Merged
merged 9 commits into from
Sep 24, 2024

Commits on Sep 13, 2024

  1. 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.
    zachs18 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    d2c1197 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff316f6 View commit details
    Browse the repository at this point in the history
  3. doc update

    zachs18 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    c8e6fca View commit details
    Browse the repository at this point in the history
  4. doc update

    zachs18 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    92f77c8 View commit details
    Browse the repository at this point in the history
  5. remove unused

    zachs18 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    d107b2a View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    be6ece8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5ac207 View commit details
    Browse the repository at this point in the history
  3. Add doc-comment for get_fields

    Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
    zachs18 and danielhenrymantilla authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    4dc453a View commit details
    Browse the repository at this point in the history
  4. Update derive/src/traits.rs

    Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
    zachs18 and danielhenrymantilla authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    1b02024 View commit details
    Browse the repository at this point in the history