Skip to content

Commit

Permalink
Add additional helpers to bitmask data structure
Browse files Browse the repository at this point in the history
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
jbaublitz committed Jul 30, 2024
1 parent 66b6551 commit cdda8d8
Show file tree
Hide file tree
Showing 44 changed files with 3,106 additions and 472 deletions.
80 changes: 69 additions & 11 deletions bindgen-tests/tests/expectations/tests/bitfield-32bit-overflow.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 69 additions & 11 deletions bindgen-tests/tests/expectations/tests/bitfield-large.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 69 additions & 11 deletions bindgen-tests/tests/expectations/tests/bitfield-linux-32.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cdda8d8

Please sign in to comment.