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

Add additional helpers to bitfield data structure #2876

Merged
merged 1 commit into from
Sep 24, 2024

Commits on Sep 3, 2024

  1. Add additional helpers to bitfield data structure

    This commit addresses the case where a struct containing a bitfield
    is wrapped in a struct such as UnsafeCell which allows interior
    mutability.
    
    Previously, bitfield accessors only allowed a receiver. This becomes
    problematic in the case of interior mutability as raw pointer access may
    be required so as not to violate the aliasing rules in Rust.
    jbaublitz committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    170c5f9 View commit details
    Browse the repository at this point in the history