-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
A-data-typesRFCs about data-typesRFCs about data-typesA-ffiFFI related proposals.FFI related proposals.A-repr#[repr(...)] related proposals & ideas#[repr(...)] related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
Bitfields are commonly encountered when interacting with C code. Since many of the details of the behavior of bitfields are left to the implementation, it is hard to write cross-platform rust code that uses bitfields correctly. (Source: #1449)
Prior RFCs and other citations:
- Add language support for bitfields #1449
- This RFC was judged to be very-close to what we would want, but with certain specific details that needed to be included; a follow-up that takes a similar approach but addresses those questions would be welcome.
- support bit fields for C interop rust#8680
rustatian, 95th, sanfusu, Andy-Python-Programmer, agavrel and 22 more
Metadata
Metadata
Assignees
Labels
A-data-typesRFCs about data-typesRFCs about data-typesA-ffiFFI related proposals.FFI related proposals.A-repr#[repr(...)] related proposals & ideas#[repr(...)] related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.