Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional helpers to bitmask 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.
- Loading branch information